Use Conan download cache

to limit to amount of transfer to/from server

Contributes to CURA-9365
This commit is contained in:
Jelle Spijker 2022-06-22 11:14:07 +02:00
parent 803858c4e9
commit be5ed20f8f

View File

@ -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