Merge pull request #195 from eqlabs/ci_maybe_skip_llvm_install

ci: skip llvm install if openssl is cached on windows
This commit is contained in:
Joonas Koivunen 2020-06-18 01:49:50 +03:00 committed by GitHub
commit d5936fcaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,22 +74,26 @@ jobs:
run: brew install llvm openssl
- name: Cache windows (openssl)
id: windows-openssl-cache
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 (slow)
if: matrix.platform.host == 'windows-latest' && steps.windows-openssl-cache.outputs.cache-hit != 'true'
run: |
choco install llvm
- name: Install dependencies windows
if: matrix.platform.host == 'windows-latest'
run: |
choco install llvm
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\lib
Get-ChildItem "C:\Program Files\LLVM"
- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1