copy rockets windows dep install

This commit is contained in:
Rob Ede 2021-02-12 09:12:26 +00:00
parent 094bad64bb
commit 2cbff4904c
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6
1 changed files with 24 additions and 24 deletions

View File

@ -23,33 +23,33 @@ jobs:
name: ${{ matrix.target.name }} / ${{ matrix.version }} name: ${{ matrix.target.name }} / ${{ matrix.version }}
runs-on: ${{ matrix.target.os }} runs-on: ${{ matrix.target.os }}
env: # env:
VCPKG_ROOT: 'C:\vcpkg' # VCPKG_ROOT: 'C:\vcpkg'
steps: steps:
- name: Cache vcpkg installed # - name: Cache vcpkg installed
uses: actions/cache@v1.0.3 # uses: actions/cache@v1.0.3
if: matrix.target.os == 'windows-latest' # if: matrix.target.os == 'windows-latest'
with: # with:
path: $VCPKG_ROOT/installed # path: $VCPKG_ROOT/installed
key: ${{ runner.os }}-vcpkg-cache # key: ${{ runner.os }}-vcpkg-cache
- name: Cache vcpkg downloads # - name: Cache vcpkg downloads
uses: actions/cache@v1.0.3 # uses: actions/cache@v1.0.3
if: matrix.target.os == 'windows-latest' # if: matrix.target.os == 'windows-latest'
with: # with:
path: $VCPKG_ROOT/downloads # path: $VCPKG_ROOT/downloads
key: ${{ runner.os }}-vcpkg-cache # key: ${{ runner.os }}-vcpkg-cache
- name: Install OpenSSL - name: Install Native Dependencies (Windows)
if: matrix.target.os == 'windows-latest' if: matrix.os.name == 'Windows'
run: | run: |
curl -fsS -o vcpkg.7z https://rocket.rs/static/vcpkg-2019-07-05.7z
7z x vcpkg.7z -y -bb0
xcopy .\vcpkg $env:VCPKG_INSTALLATION_ROOT /s /e /h /y /q
vcpkg integrate install vcpkg integrate install
vcpkg update echo "VCPKGRS_DYNAMIC=1" >> "$env:GITHUB_ENV"
vcpkg install openssl:x64-windows echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" >> "$env:GITHUB_ENV"
Copy-Item C:\vcpkg\installed\x64-windows\bin\libcrypto-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libcrypto.dll echo "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib" >> "$env:GITHUB_PATH"
Copy-Item C:\vcpkg\installed\x64-windows\bin\libssl-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libssl.dll
Get-ChildItem C:\vcpkg\installed\x64-windows\bin
Get-ChildItem C:\vcpkg\installed\x64-windows\lib
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -67,13 +67,13 @@ jobs:
- name: Cache Dependencies - name: Cache Dependencies
uses: Swatinem/rust-cache@v1.0.1 uses: Swatinem/rust-cache@v1.0.1
- name: check check minimal - name: check minimal
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: check command: check
args: --workspace --no-default-features --tests args: --workspace --no-default-features --tests
- name: check check workspace - name: check full
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: check command: check