Skip to content

Commit 8d24619

Browse files
authored
CI: use julia-actions/cache (#35)
1 parent 6726239 commit 8d24619

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
test:
1010
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1111
runs-on: ${{ matrix.os }}
12+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
13+
actions: write
14+
contents: read
1215
strategy:
1316
fail-fast: false
1417
matrix:
@@ -27,16 +30,7 @@ jobs:
2730
with:
2831
version: ${{ matrix.version }}
2932
arch: ${{ matrix.arch }}
30-
- uses: actions/cache@v4
31-
env:
32-
cache-name: cache-artifacts
33-
with:
34-
path: ~/.julia/artifacts
35-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36-
restore-keys: |
37-
${{ runner.os }}-test-${{ env.cache-name }}-
38-
${{ runner.os }}-test-
39-
${{ runner.os }}-
33+
- uses: julia-actions/cache@v2
4034
- uses: julia-actions/julia-buildpkg@v1
4135
- uses: julia-actions/julia-runtest@v1
4236
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)