👷 Cache conan packages (#1487)

This commit is contained in:
Edgar
2020-01-23 09:21:01 +01:00
committed by pajlada
parent 476825dc35
commit f87e008679
+15 -2
View File
@@ -30,12 +30,25 @@ jobs:
modules: qtwebengine modules: qtwebengine
# WINDOWS # WINDOWS
- name: Cache conan
if: startsWith(matrix.os, 'windows')
uses: actions/cache@v1
with:
key: ${{ runner.os }}-conan-root-${{ hashFiles('**/conanfile.txt') }}
path: ~/.conan
- name: Cache conan packages
if: startsWith(matrix.os, 'windows')
uses: actions/cache@v1
with:
key: ${{ runner.os }}-conan-pkg-${{ hashFiles('**/conanfile.txt') }}
path: C:/.conan/
- name: Install dependencies (Windows) - name: Install dependencies (Windows)
if: startsWith(matrix.os, 'windows') if: startsWith(matrix.os, 'windows')
run: | run: |
REM We use this source (temporarily?) until choco has updated their version of conan REM We use this source (temporarily?) until choco has updated their version of conan
choco source add -n=AFG -s="https://api.bintray.com/nuget/anotherfoxguy/choco-pkg" choco install conan -y -s="https://api.bintray.com/nuget/anotherfoxguy/choco-pkg"
choco install conan -y
refreshenv refreshenv
shell: cmd shell: cmd