diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 846a0ca2a..656dc6ee0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,6 +5,9 @@ on: name: CI +env: + VCPKGRS_DYNAMIC: 1 + jobs: rust_tests: name: Run rust tests @@ -15,8 +18,16 @@ jobs: fail-fast: false steps: - uses: actions/checkout@master - - name: Convert symlinks to hardlink (windows only) - run: powershell.exe scripts/symlinks-to-hardlinks.ps1 + - name: Cache Windows + uses: actions/cache@v1 + with: + key: vcpkg + path: 'C:/vcpkg' + if: runner.os == 'Windows' + - name: Set up the Windows environment + run: | + powershell.exe scripts/symlinks-to-hardlinks.ps1 + powershell.exe scripts/install-openssl.ps1 if: runner.os == 'Windows' - name: Cache cargo dependencies uses: actions/cache@v1 @@ -40,8 +51,16 @@ jobs: fail-fast: false steps: - uses: actions/checkout@master - - name: Convert symlinks to hardlink (windows only) - run: powershell.exe scripts/symlinks-to-hardlinks.ps1 + - name: Cache Windows + uses: actions/cache@v1 + with: + key: vcpkg + path: 'C:/vcpkg' + if: runner.os == 'Windows' + - name: Set up the Windows environment + run: | + powershell.exe scripts/symlinks-to-hardlinks.ps1 + powershell.exe scripts/install-openssl.ps1 if: runner.os == 'Windows' - name: Cache cargo dependencies uses: actions/cache@v1 diff --git a/scripts/install-openssl.ps1 b/scripts/install-openssl.ps1 new file mode 100644 index 000000000..beab80edb --- /dev/null +++ b/scripts/install-openssl.ps1 @@ -0,0 +1,8 @@ +# From the Actix Web windows workflow: +# https://github.com/actix/actix-web/blob/master/.github/workflows/windows.yml +vcpkg integrate install +vcpkg install openssl:x64-windows +Copy-Item C:\vcpkg\installed\x64-windows\bin\libcrypto-1_1-x64.dll C:\vcpkg\installed\x64-windows\bin\libcrypto.dll +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