mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-24 10:34:28 +08:00
Use Conan download cache
to limit to amount of transfer to/from server Contributes to CURA-9365
This commit is contained in:
parent
803858c4e9
commit
be5ed20f8f
13
.github/workflows/conan-package-create.yml
vendored
13
.github/workflows/conan-package-create.yml
vendored
@ -57,11 +57,21 @@ jobs:
|
|||||||
pip install -r .github/workflows/requirements-conan-package.txt
|
pip install -r .github/workflows/requirements-conan-package.txt
|
||||||
conan profile new default --detect
|
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)
|
- name: Cache Conan local repository packages (Bash)
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
if: ${{ runner.os != 'Windows' }}
|
if: ${{ runner.os != 'Windows' }}
|
||||||
with:
|
with:
|
||||||
path: $HOME/.conan/data
|
path: |
|
||||||
|
$HOME/.conan/data
|
||||||
|
$HOME/.conan/conan_download_cache
|
||||||
key: conan-${{ runner.os }}-${{ runner.arch }}
|
key: conan-${{ runner.os }}-${{ runner.arch }}
|
||||||
|
|
||||||
- name: Cache Conan local repository packages (Powershell)
|
- name: Cache Conan local repository packages (Powershell)
|
||||||
@ -71,6 +81,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
C:\Users\runneradmin\.conan\data
|
C:\Users\runneradmin\.conan\data
|
||||||
C:\.conan
|
C:\.conan
|
||||||
|
C:\Users\runneradmin\.conan\conan_download_cache
|
||||||
key: conan-${{ runner.os }}-${{ runner.arch }}
|
key: conan-${{ runner.os }}-${{ runner.arch }}
|
||||||
|
|
||||||
- name: Install MacOS system requirements
|
- name: Install MacOS system requirements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user