From f5c71401c785c3874feb597782d7a1d88fa5a03c Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Mon, 8 Jun 2020 14:51:52 +0300 Subject: [PATCH] fix: cache openssl build on windows also attempt to cache llvm as well, but apparently that does not work and chocolatey ends up downloading the same 160MB either way. --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6693c321..107ddf66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,20 @@ jobs: if: matrix.platform.host == 'macos-latest' run: brew install llvm openssl + - name: Cache windows (llvm) + if: matrix.platform.host == 'windows-latest' + uses: actions/cache@v2 + with: + path: 'C:\Program Files\LLVM' + key: ${{ runner.os }}-llvm + + - name: Cache windows (openssl) + if: matrix.platform.host == 'windows-latest' + uses: actions/cache@v2 + with: + path: 'C:\vcpkg\installed\x64-windows' + key: ${{ runner.os }}-${{ hashFiles('C:\vcpkg\installed\x64-windows\bin\libcrypto.dll', 'C:\vcpkg\installed\x64-windows\bin\libssl.dll') }} + - name: Install dependencies windows if: matrix.platform.host == 'windows-latest' run: | @@ -81,7 +95,6 @@ jobs: 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 - name: Install rust toolchain