Browse Source

Use Conan download cache

to limit to amount of transfer to/from server

Contributes to CURA-9365
Jelle Spijker 2 years ago
parent
commit
be5ed20f8f
1 changed files with 12 additions and 1 deletions
  1. 12 1
      .github/workflows/conan-package-create.yml

+ 12 - 1
.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