Fix Windows build

This commit is contained in:
Yuki Okushi 2020-01-22 20:59:28 +09:00
parent 3d96755b57
commit 6c01de5f12
1 changed files with 14 additions and 4 deletions

View File

@ -3,6 +3,7 @@ name: CI (Windows)
on: [push, pull_request] on: [push, pull_request]
env: env:
VCPKG_HASH: 3f62e5d55d1a7d8905df35d5c441d6e9ad64ffdf
VCPKGRS_DYNAMIC: 1 VCPKGRS_DYNAMIC: 1
jobs: jobs:
@ -50,14 +51,23 @@ jobs:
uses: actions/cache@v1 uses: actions/cache@v1
id: cache-vcpkg id: cache-vcpkg
with: with:
path: C:\vcpkg path: vcpkg
key: windows_x64-${{ matrix.version }}-vcpkg key: windows_x64-${{ env.VCPKG_HASH }}-vcpkg
- name: Install OpenSSL - name: Install OpenSSL
if: steps.cache-vcpkg.outputs.cache-hit != 'true' if: steps.cache-vcpkg.outputs.cache-hit != 'true'
shell: pwsh
run: | run: |
vcpkg integrate install git clone https://github.com/Microsoft/vcpkg.git
vcpkg install openssl:x64-windows cd vcpkg
git reset --hard $VCPKG_HASH
.\bootstrap-vcpkg.bat
.\vcpkg integrate install
.\vcpkg install openssl:x64-windows
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