Skip to content

Commit 3285a53

Browse files
authored
Use julia actions cache in CI (#671)
* Use julia actions cache in CI * Remove arch from name
1 parent d6fb726 commit 3285a53

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/ci.yml

Lines changed: 9 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
@@ -41,28 +47,17 @@ jobs:
4147
- '1'
4248
- 'lts'
4349
- 'pre'
50+
- 'min'
4451
os:
4552
- ubuntu-latest
4653
- macOS-latest
4754
- windows-latest
48-
arch:
49-
- x64
5055
steps:
5156
- uses: actions/checkout@v4
5257
- uses: julia-actions/setup-julia@v2
5358
with:
5459
version: ${{ matrix.version }}
55-
arch: ${{ matrix.arch }}
56-
- uses: actions/cache@v4
57-
env:
58-
cache-name: cache-artifacts
59-
with:
60-
path: ~/.julia/artifacts
61-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
62-
restore-keys: |
63-
${{ runner.os }}-test-${{ env.cache-name }}-
64-
${{ runner.os }}-test-
65-
${{ runner.os }}-
60+
- uses: julia-actions/cache@v2
6661
- uses: julia-actions/julia-buildpkg@v1
6762
- uses: julia-actions/julia-runtest@v1
6863
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)