Skip to content

Commit 686cb47

Browse files
authored
Update CI workflow to use Julia actions cache
1 parent fcf1a37 commit 686cb47

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/CI.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
branches:
88
- master
99
tags: '*'
10+
11+
# needed to allow julia-actions/cache to delete old caches that it has created
12+
permissions:
13+
actions: write
14+
contents: read
15+
1016
jobs:
1117
ci:
1218
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
@@ -26,20 +32,11 @@ jobs:
2632
prefix: xvfb-run # julia-actions/julia-runtest/blob/master/README.md
2733
steps:
2834
- uses: actions/checkout@v5
29-
- uses: julia-actions/setup-julia@latest
35+
- uses: julia-actions/setup-julia@v2
3036
with:
3137
version: ${{ matrix.version }}
3238
arch: ${{ matrix.arch }}
33-
- uses: actions/cache@v4
34-
env:
35-
cache-name: cache-artifacts
36-
with:
37-
path: ~/.julia/artifacts
38-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39-
restore-keys: |
40-
${{ runner.os }}-test-${{ env.cache-name }}-
41-
${{ runner.os }}-test-
42-
${{ runner.os }}-
39+
- uses: julia-actions/cache@v2
4340
- name: "KomaMRIBase: Build"
4441
if: '!cancelled()'
4542
uses: julia-actions/julia-buildpkg@v1

0 commit comments

Comments
 (0)