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:
commit
d5936fcaba
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user