Skip to content

Commit c4e85f4

Browse files
authored
Use julia cache in CI (#465)
1 parent 3fe9243 commit c4e85f4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
- 'README.md'
1919
- '.github/workflows/TagBot.yml'
2020

21+
# needed to allow julia-actions/cache to delete old caches that it has created
22+
permissions:
23+
actions: write
24+
contents: read
25+
2126
jobs:
2227
pre_job:
2328
# continue-on-error: true # Uncomment once integration is finished
@@ -50,16 +55,7 @@ jobs:
5055
- uses: julia-actions/setup-julia@v2
5156
with:
5257
version: ${{ matrix.version }}
53-
- uses: actions/cache@v4
54-
env:
55-
cache-name: cache-artifacts
56-
with:
57-
path: ~/.julia/artifacts
58-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
59-
restore-keys: |
60-
${{ runner.os }}-test-${{ env.cache-name }}-
61-
${{ runner.os }}-test-
62-
${{ runner.os }}-
58+
- uses: julia-actions/cache@v2
6359
- uses: julia-actions/julia-buildpkg@v1
6460
- uses: julia-actions/julia-runtest@v1
6561
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)