Skip to content

Commit 1e4fcc1

Browse files
authored
Use julia actions cache in CI (#267)
1 parent 5ad4e55 commit 1e4fcc1

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
@@ -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
@@ -37,6 +42,7 @@ jobs:
3742
fail-fast: false
3843
matrix:
3944
version:
45+
- 'min'
4046
- 'lts'
4147
- '1'
4248
os:
@@ -48,16 +54,7 @@ jobs:
4854
- uses: julia-actions/setup-julia@v2
4955
with:
5056
version: ${{ matrix.version }}
51-
- uses: actions/cache@v4
52-
env:
53-
cache-name: cache-artifacts
54-
with:
55-
path: ~/.julia/artifacts
56-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
57-
restore-keys: |
58-
${{ runner.os }}-test-${{ env.cache-name }}-
59-
${{ runner.os }}-test-
60-
${{ runner.os }}-
57+
- uses: julia-actions/cache@v2
6158
- uses: julia-actions/julia-buildpkg@v1
6259
- uses: julia-actions/julia-runtest@v1
6360
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)