use caching of conan data

Contributes to CURA-8415
This commit is contained in:
Jelle Spijker 2023-08-19 00:33:20 +02:00
parent ce5fb3d403
commit 8501c7113a
No known key found for this signature in database
GPG Key ID: 034D1C0527888B65

View File

@ -106,6 +106,14 @@ jobs:
- name: Install Python requirements for runner
run: pip install -r .github/workflows/requirements-conan-package.txt
- name: Cache Conan local repository packages (Bash)
uses: actions/cache@v3
with:
path: |
$HOME/.conan/data
$HOME/.conan/conan_download_cache
key: conan-${{ runner.os }}-${{ runner.arch }}-installer-cache
- name: Install MacOS system requirements
run: brew install cmake autoconf automake ninja create-dmg
@ -135,6 +143,9 @@ jobs:
- name: Get Conan configuration
run: conan config install https://github.com/Ultimaker/conan-config.git
- name: Use Conan download cache (Bash)
run: conan config set storage.download_cache="$HOME/.conan/conan_download_cache"
- name: Set architecture conan profile
if: ${{ inputs.architecture == 'X64' }}
run: conan profile update settings.arch=x86_64 default