mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
Fix vcpkg cache (#1312)
This commit is contained in:
parent
a3287948d1
commit
c6fa007e72
25
.github/workflows/windows.yml
vendored
25
.github/workflows/windows.yml
vendored
@ -3,7 +3,6 @@ name: CI (Windows)
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VCPKG_HASH: 3f62e5d55d1a7d8905df35d5c441d6e9ad64ffdf
|
|
||||||
VCPKGRS_DYNAMIC: 1
|
VCPKGRS_DYNAMIC: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -47,27 +46,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: target
|
path: target
|
||||||
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ matrix.version }}-x86_64-pc-windows-msvc-cargo-build-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Cache vcpkg package
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-vcpkg
|
|
||||||
with:
|
|
||||||
path: vcpkg
|
|
||||||
key: windows_x64-${{ env.VCPKG_HASH }}-vcpkg
|
|
||||||
|
|
||||||
- name: Install OpenSSL
|
- name: Install OpenSSL
|
||||||
if: steps.cache-vcpkg.outputs.cache-hit != 'true'
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/Microsoft/vcpkg.git
|
vcpkg integrate install
|
||||||
cd vcpkg
|
vcpkg install openssl:x64-windows
|
||||||
git reset --hard $VCPKG_HASH
|
Copy-Item C:\vcpkg\installed\x64-windows\bin\libcrypto-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libcrypto.dll
|
||||||
.\bootstrap-vcpkg.bat
|
Copy-Item C:\vcpkg\installed\x64-windows\bin\libssl-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libssl.dll
|
||||||
.\vcpkg integrate install
|
Get-ChildItem C:\vcpkg\installed\x64-windows\bin
|
||||||
.\vcpkg install openssl:x64-windows
|
Get-ChildItem C:\vcpkg\installed\x64-windows\lib
|
||||||
Copy-Item .\installed\x64-windows\bin\libcrypto-1_1-x64.dll .\installed\x64-windows\bin\libcrypto.dll
|
|
||||||
Copy-Item .\installed\x64-windows\bin\libssl-1_1-x64.dll .\installed\x64-windows\bin\libssl.dll
|
|
||||||
Get-ChildItem .\installed\x64-windows\bin
|
|
||||||
Get-ChildItem .\installed\x64-windows\lib
|
|
||||||
|
|
||||||
- name: check build
|
- name: check build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user