From f87e008679646aaabbaa887f3430f7c3847e4a16 Mon Sep 17 00:00:00 2001 From: Edgar Date: Thu, 23 Jan 2020 09:21:01 +0100 Subject: [PATCH] :construction_worker: Cache conan packages (#1487) --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eea852f4b..7fd328342 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,12 +30,25 @@ jobs: modules: qtwebengine # 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) if: startsWith(matrix.os, 'windows') run: | 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 + choco install conan -y -s="https://api.bintray.com/nuget/anotherfoxguy/choco-pkg" refreshenv shell: cmd