Skip to content

Commit 4d386cf

Browse files
authored
Use julia actions cache in CI (#440)
1 parent 4e378c8 commit 4d386cf

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ concurrency:
1717
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
1818
cancel-in-progress: true
1919

20+
# needed to allow julia-actions/cache to delete old caches that it has created
21+
permissions:
22+
actions: write
23+
contents: read
24+
2025
jobs:
2126
pre_job:
2227
# continue-on-error: true # Uncomment once integration is finished
@@ -47,16 +52,7 @@ jobs:
4752
- uses: julia-actions/setup-julia@v2
4853
with:
4954
version: ${{ matrix.version }}
50-
- uses: actions/cache@v4
51-
env:
52-
cache-name: cache-artifacts
53-
with:
54-
path: ~/.julia/artifacts
55-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
56-
restore-keys: |
57-
${{ runner.os }}-test-${{ env.cache-name }}-
58-
${{ runner.os }}-test-
59-
${{ runner.os }}-
55+
- uses: julia-actions/cache@v2
6056
- uses: julia-actions/julia-buildpkg@v1
6157
- uses: julia-actions/julia-runtest@v1
6258
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)