From be5ed20f8fc731a369b32bc26450f225237a01fd Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Wed, 22 Jun 2022 11:14:07 +0200 Subject: [PATCH] Use Conan download cache to limit to amount of transfer to/from server Contributes to CURA-9365 --- .github/workflows/conan-package-create.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/conan-package-create.yml b/.github/workflows/conan-package-create.yml index fe036cc8c4..ca9248cfd6 100644 --- a/.github/workflows/conan-package-create.yml +++ b/.github/workflows/conan-package-create.yml @@ -57,11 +57,21 @@ jobs: pip install -r .github/workflows/requirements-conan-package.txt conan profile new default --detect + - name: Use Conan download cache (Bash) + if: ${{ runner.os != 'Windows' }} + run: conan config set storage.download_cache="$HOME/.conan/conan_download_cache" + + - name: Use Conan download cache (Powershell) + if: ${{ runner.os == 'Windows' }} + run: conan config set storage.download_cache="C:\Users\runneradmin\.conan\conan_download_cache" + - name: Cache Conan local repository packages (Bash) uses: actions/cache@v3 if: ${{ runner.os != 'Windows' }} with: - path: $HOME/.conan/data + path: | + $HOME/.conan/data + $HOME/.conan/conan_download_cache key: conan-${{ runner.os }}-${{ runner.arch }} - name: Cache Conan local repository packages (Powershell) @@ -71,6 +81,7 @@ jobs: path: | C:\Users\runneradmin\.conan\data C:\.conan + C:\Users\runneradmin\.conan\conan_download_cache key: conan-${{ runner.os }}-${{ runner.arch }} - name: Install MacOS system requirements