Skip to content

Commit 8310f90

Browse files
authored
Use julia actions cache in CI (#231)
1 parent dbb1e50 commit 8310f90

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ on:
1212
- 'LICENSE'
1313
- 'README.md'
1414
- '.github/workflows/TagBot.yml'
15+
16+
# needed to allow julia-actions/cache to delete old caches that it has created
17+
permissions:
18+
actions: write
19+
contents: read
20+
1521
jobs:
1622
test:
1723
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
@@ -31,16 +37,7 @@ jobs:
3137
- uses: julia-actions/setup-julia@v2
3238
with:
3339
version: ${{ matrix.version }}
34-
- uses: actions/cache@v4
35-
env:
36-
cache-name: cache-artifacts
37-
with:
38-
path: ~/.julia/artifacts
39-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
40-
restore-keys: |
41-
${{ runner.os }}-test-${{ env.cache-name }}-
42-
${{ runner.os }}-test-
43-
${{ runner.os }}-
40+
- uses: julia-actions/cache@v2
4441
- uses: julia-actions/julia-buildpkg@v1
4542
- uses: julia-actions/julia-runtest@v1
4643
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)