Skip to content

Commit e8e1725

Browse files
authored
Use Julia actions cache in CI (#113)
1 parent fc71a5b commit e8e1725

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ on:
1818
- 'LICENSE'
1919
- 'README.md'
2020
- '.github/workflows/TagBot.yml'
21+
22+
# needed to allow julia-actions/cache to delete old caches that it has created
23+
permissions:
24+
actions: write
25+
contents: read
26+
2127
jobs:
2228
pre_job:
2329
# continue-on-error: true # Uncomment once integration is finished
@@ -32,7 +38,7 @@ jobs:
3238
test:
3339
needs: pre_job
3440
if: needs.pre_job.outputs.should_skip != 'true'
35-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
41+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
3642
runs-on: ${{ matrix.os }}
3743
strategy:
3844
fail-fast: false
@@ -44,24 +50,12 @@ jobs:
4450
- ubuntu-latest
4551
# - macOS-latest # FastTransforms.jl is broken on macOS-latest
4652
- windows-latest
47-
arch:
48-
- x64
4953
steps:
5054
- uses: actions/checkout@v4
5155
- uses: julia-actions/setup-julia@v2
5256
with:
5357
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 }}-
58+
- uses: julia-actions/cache@v2
6559
- uses: julia-actions/julia-buildpkg@v1
6660
- uses: julia-actions/julia-runtest@v1
6761
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)