Skip to content

Commit ca09789

Browse files
authored
Use julia actions cache in CI (#362)
1 parent d35b599 commit ca09789

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ concurrency:
1717
group: build-${{ github.event.pull_request.number || github.ref }}-${{ github.workflow }}
1818
cancel-in-progress: true
1919

20+
# needed to allow julia-actions/cache to delete old caches that it has created
21+
permissions:
22+
actions: write
23+
contents: read
24+
2025
jobs:
2126
pre_job:
2227
# continue-on-error: true # Uncomment once integration is finished
@@ -31,7 +36,7 @@ jobs:
3136
test:
3237
needs: pre_job
3338
if: needs.pre_job.outputs.should_skip != 'true'
34-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
39+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
3540
runs-on: ${{ matrix.os }}
3641
strategy:
3742
fail-fast: false
@@ -44,24 +49,12 @@ jobs:
4449
- ubuntu-latest
4550
# - macOS-latest # FastTransforms.jl is broken on macOS-latest
4651
# - windows-latest
47-
arch:
48-
- x64
4952
steps:
5053
- uses: actions/checkout@v4
5154
- uses: julia-actions/setup-julia@v2
5255
with:
5356
version: ${{ matrix.version }}
54-
arch: ${{ matrix.arch }}
55-
- uses: actions/cache@v4
56-
env:
57-
cache-name: cache-artifacts
58-
with:
59-
path: ~/.julia/artifacts
60-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
61-
restore-keys: |
62-
${{ runner.os }}-test-${{ env.cache-name }}-
63-
${{ runner.os }}-test-
64-
${{ runner.os }}-
57+
- uses: julia-actions/cache@v2
6558
- uses: julia-actions/julia-buildpkg@v1
6659
- uses: julia-actions/julia-runtest@v1
6760
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)