Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-26 05:50:29 +01:00
try setting VCPKG_ROOT
Dieser Commit ist enthalten in:
Ursprung
4deae76347
Commit
24edc94f9d
1 geänderte Dateien mit 12 neuen und 8 gelöschten Zeilen
20
.github/workflows/workspace.yml
gevendort
20
.github/workflows/workspace.yml
gevendort
|
@ -23,13 +23,13 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
ext: ''
|
ext:
|
||||||
# - target: x86_64-unknown-linux-musl
|
# - target: x86_64-unknown-linux-musl
|
||||||
# os: ubuntu-latest
|
# os: ubuntu-latest
|
||||||
# ext: ''
|
# ext:
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
os: macOS-latest
|
os: macOS-latest
|
||||||
ext: ''
|
ext:
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
ext: .exe
|
ext: .exe
|
||||||
|
@ -48,15 +48,19 @@ jobs:
|
||||||
uses: actions/cache@v1.0.3
|
uses: actions/cache@v1.0.3
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
with:
|
with:
|
||||||
path: $VCPKG_DIR/installed
|
path: $VCPKG_ROOT/installed
|
||||||
key: ${{ runner.os }}-vcpkg-cache-${{ matrix.db-backend }}
|
key: ${{ runner.os }}-vcpkg-cache-${{ matrix.db-backend }}
|
||||||
|
env:
|
||||||
|
VCPKG_ROOT: 'C:\vcpkg'
|
||||||
|
|
||||||
- name: Cache vcpkg downloads
|
- name: Cache vcpkg downloads
|
||||||
uses: actions/cache@v1.0.3
|
uses: actions/cache@v1.0.3
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
with:
|
with:
|
||||||
path: $VCPKG_DIR/downloads
|
path: $VCPKG_ROOT/downloads
|
||||||
key: ${{ runner.os }}-vcpkg-cache-${{ matrix.db-backend }}
|
key: ${{ runner.os }}-vcpkg-cache-${{ matrix.db-backend }}
|
||||||
|
env:
|
||||||
|
VCPKG_ROOT: 'C:\vcpkg'
|
||||||
|
|
||||||
# - name: Cache homebrew
|
# - name: Cache homebrew
|
||||||
# uses: actions/cache@v1.0.3
|
# uses: actions/cache@v1.0.3
|
||||||
|
@ -84,6 +88,8 @@ jobs:
|
||||||
- name: Install dependencies Windows
|
- name: Install dependencies Windows
|
||||||
run: vcpkg integrate install; vcpkg install sqlite3:x64-windows openssl:x64-windows libpq:x64-windows libmysql:x64-windows
|
run: vcpkg integrate install; vcpkg install sqlite3:x64-windows openssl:x64-windows libpq:x64-windows libmysql:x64-windows
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
|
env:
|
||||||
|
VCPKG_ROOT: 'C:\vcpkg'
|
||||||
# End Install dependencies
|
# End Install dependencies
|
||||||
|
|
||||||
# Install rust nightly toolchain
|
# Install rust nightly toolchain
|
||||||
|
@ -116,10 +122,8 @@ jobs:
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: cargo.exe build --features ${{ matrix.db-backend }} --release --target ${{ matrix.target }}
|
run: cargo.exe build --features ${{ matrix.db-backend }} --release --target ${{ matrix.target }}
|
||||||
env:
|
env:
|
||||||
OPENSSL_DIR: C:\Program Files\OpenSSL\
|
|
||||||
MYSQLCLIENT_LIB_DIR: C:\Program Files\MySQL\MySQL Server 8.0\lib
|
|
||||||
PQ_LIB_DIR: C:\Program Files\PostgreSQL\12\lib
|
|
||||||
RUSTFLAGS: -Ctarget-feature=+crt-static
|
RUSTFLAGS: -Ctarget-feature=+crt-static
|
||||||
|
VCPKG_ROOT: 'C:\vcpkg'
|
||||||
|
|
||||||
- name: Build macOS / Ubuntu
|
- name: Build macOS / Ubuntu
|
||||||
if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest'
|
||||||
|
|
Laden …
In neuem Issue referenzieren