Skip to content

Commit f347016

Browse files
authored
Use julia actions cache in CI (#958)
* Use julia actions cache in CI * Remove arch from name
1 parent bc27337 commit f347016

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
@@ -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
@@ -35,36 +40,25 @@ jobs:
3540
test:
3641
needs: pre_job
3742
if: needs.pre_job.outputs.should_skip != 'true'
38-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
43+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
3944
runs-on: ${{ matrix.os }}
4045
strategy:
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)