Skip to content

Commit 141ab97

Browse files
authored
[CI] Cache artifacts in CI runs (#241)
* [CI] Cache artifacts in CI runs * [CI] Cache only squashfs
1 parent b29a556 commit 141ab97

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ci.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ jobs:
4949
with:
5050
version: ${{ matrix.julia-version }}
5151
arch: x64
52+
- uses: julia-actions/cache@v1
53+
# For the time being cache artifacts only for squashfs, we need too much
54+
# storage for the unpacked shards
55+
if: ${{ matrix.squashfs == true }}
56+
with:
57+
# Reserve entire cache to artifacts
58+
cache-name: ${{ matrix.squashfs }}
59+
cache-artifacts: "true"
60+
cache-packages: "false"
61+
cache-registries: "false"
5262
- uses: julia-actions/julia-buildpkg@latest
5363
- name: System info
5464
run: julia --project=. --color=yes -e "using BinaryBuilderBase; BinaryBuilderBase.versioninfo()"
@@ -70,17 +80,6 @@ jobs:
7080
- uses: julia-actions/setup-julia@latest
7181
with:
7282
version: "1.7"
73-
- name: Cache artifacts
74-
uses: actions/cache@v2
75-
env:
76-
cache-name: cache-artifacts
77-
with:
78-
path: ~/.julia/artifacts
79-
key: ${{ runner.os }}-docs-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
80-
restore-keys: |
81-
${{ runner.os }}-docs-${{ env.cache-name }}-
82-
${{ runner.os }}-docs-
83-
${{ runner.os }}-
8483
- uses: julia-actions/julia-docdeploy@releases/v1
8584
env:
8685
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)