Skip to content

Commit 2e98287

Browse files
authored
Use julia actions cache in CI (#225)
1 parent f4e898f commit 2e98287

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
@@ -30,7 +35,7 @@ jobs:
3035
test:
3136
needs: pre_job
3237
if: needs.pre_job.outputs.should_skip != 'true'
33-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
38+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
3439
runs-on: ${{ matrix.os }}
3540
strategy:
3641
fail-fast: false
@@ -43,24 +48,12 @@ jobs:
4348
- ubuntu-latest
4449
- macOS-latest
4550
- windows-latest
46-
arch:
47-
- x64
4851
steps:
4952
- uses: actions/checkout@v5
5053
- uses: julia-actions/setup-julia@v2
5154
with:
5255
version: ${{ matrix.version }}
53-
arch: ${{ matrix.arch }}
54-
- uses: actions/cache@v4
55-
env:
56-
cache-name: cache-artifacts
57-
with:
58-
path: ~/.julia/artifacts
59-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
60-
restore-keys: |
61-
${{ runner.os }}-test-${{ env.cache-name }}-
62-
${{ runner.os }}-test-
63-
${{ runner.os }}-
56+
- uses: julia-actions/cache@v2
6457
- uses: julia-actions/julia-buildpkg@v1
6558
- uses: julia-actions/julia-runtest@v1
6659
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)