Skip to content

Commit 5f9d86d

Browse files
committed
Use julia actions cache in CI
1 parent 7c6cb5b commit 5f9d86d

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ concurrency:
2121
group: build-${{ github.event.pull_request.number || github.ref }}
2222
cancel-in-progress: true
2323

24+
# needed to allow julia-actions/cache to delete old caches that it has created
25+
permissions:
26+
actions: write
27+
contents: read
28+
2429
jobs:
2530
pre_job:
2631
# continue-on-error: true # Uncomment once integration is finished
@@ -41,30 +46,19 @@ jobs:
4146
fail-fast: false
4247
matrix:
4348
version:
49+
- 'min'
4450
- 'lts'
4551
- '1'
4652
os:
4753
- ubuntu-latest
4854
# - macOS-latest # FastTransforms.jl is currently broken on macOS-latest
4955
- windows-latest
50-
arch:
51-
- x64
5256
steps:
5357
- uses: actions/checkout@v3
5458
- uses: julia-actions/setup-julia@v2
5559
with:
5660
version: ${{ matrix.version }}
57-
arch: ${{ matrix.arch }}
58-
- uses: actions/cache@v3
59-
env:
60-
cache-name: cache-artifacts
61-
with:
62-
path: ~/.julia/artifacts
63-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
64-
restore-keys: |
65-
${{ runner.os }}-test-${{ env.cache-name }}-
66-
${{ runner.os }}-test-
67-
${{ runner.os }}-
61+
- uses: julia-actions/cache@v2
6862
- uses: julia-actions/julia-buildpkg@v1
6963
- uses: julia-actions/julia-runtest@v1
7064
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)