Skip to content

Commit 46f5d95

Browse files
authored
Update CI (#693)
1 parent 134b9fd commit 46f5d95

File tree

6 files changed

+33
-70
lines changed

6 files changed

+33
-70
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ concurrency:
1010
# Cancel intermediate builds: only if it is a pull request build.
1111
group: ${{ github.workflow }}-${{ github.ref }}
1212
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
14+
# needed to allow julia-actions/cache to delete old caches that it has created
15+
permissions:
16+
actions: write
17+
contents: read
18+
1319
jobs:
1420
test:
1521
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -19,39 +25,33 @@ jobs:
1925
matrix:
2026
version:
2127
- "1" # Latest Release
22-
- "1.6" # LTS
28+
- "min" # Oldest supported Julia release
2329
os:
2430
- ubuntu-latest
25-
- macOS-latest
31+
- macOS-13 # Intel
2632
- windows-latest
2733
arch:
2834
- x64
2935
- x86
3036
exclude:
3137
# Test 32-bit only on Linux
32-
- os: macOS-latest
38+
- os: macOS-13
3339
arch: x86
3440
- os: windows-latest
3541
arch: x86
42+
include:
43+
- os: macOS-latest # Apple Silicon
44+
version: "1"
45+
arch: aarch64
3646
steps:
3747
- uses: actions/checkout@v4
3848
- uses: julia-actions/setup-julia@v2
3949
with:
4050
version: ${{ matrix.version }}
4151
arch: ${{ matrix.arch }}
42-
- uses: actions/cache@v4
43-
env:
44-
cache-name: cache-artifacts
45-
with:
46-
path: ~/.julia/artifacts
47-
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
48-
restore-keys: |
49-
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
50-
${{ runner.os }}-${{ matrix.arch }}-test-
51-
${{ runner.os }}-${{ matrix.arch }}-
52-
${{ runner.os }}-
53-
- uses: julia-actions/julia-buildpkg@latest
54-
- uses: julia-actions/julia-runtest@latest
52+
- uses: julia-actions/cache@v2
53+
- uses: julia-actions/julia-buildpkg@v1
54+
- uses: julia-actions/julia-runtest@v1
5555
- uses: julia-actions/julia-processcoverage@v1
5656
- uses: codecov/codecov-action@v5
5757
with:
@@ -62,11 +62,16 @@ jobs:
6262
docs:
6363
name: Documentation
6464
runs-on: ubuntu-latest
65+
permissions:
66+
contents: write # Required when authenticating with `GITHUB_TOKEN`, not needed when authenticating with SSH deploy keys
67+
pull-requests: read # Required when using `push_preview=true`
68+
statuses: write # Optional, used to report documentation build statuses
6569
steps:
6670
- uses: actions/checkout@v4
6771
- uses: julia-actions/setup-julia@v2
6872
with:
6973
version: '1.6'
74+
- uses: julia-actions/cache@v2
7075
- run: |
7176
julia --project=docs -e '
7277
using Pkg

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'
16+
run: julia -e 'using CompatHelper; CompatHelper.main(; subdirs = ["", "docs"])'

.github/workflows/IntegrationTest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
version: ${{ matrix.julia-version }}
4747
arch: x64
48-
- uses: julia-actions/julia-buildpkg@latest
48+
- uses: julia-actions/julia-buildpkg@v1
4949
- name: Clone Downstream
5050
uses: actions/checkout@v4
5151
with:

.github/workflows/Invalidations.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/JuliaNightly.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ concurrency:
1212
# Cancel intermediate builds: only if it is a pull request build.
1313
group: ${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
16+
# needed to allow julia-actions/cache to delete old caches that it has created
17+
permissions:
18+
actions: write
19+
contents: read
20+
1521
jobs:
1622
test:
1723
name: Julia Nightly - Ubuntu - x64
@@ -21,17 +27,9 @@ jobs:
2127
- uses: julia-actions/setup-julia@v2
2228
with:
2329
version: nightly
24-
arch: x64
25-
- uses: actions/cache@v4
26-
env:
27-
cache-name: julia-nightly-cache-artifacts
28-
with:
29-
path: ~/.julia/artifacts
30-
key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
31-
restore-keys: |
32-
${{ env.cache-name }}-
33-
- uses: julia-actions/julia-buildpkg@latest
34-
- uses: julia-actions/julia-runtest@latest
30+
- uses: julia-actions/cache@v2
31+
- uses: julia-actions/julia-buildpkg@v1
32+
- uses: julia-actions/julia-runtest@v1
3533
- uses: julia-actions/julia-processcoverage@v1
3634
- uses: codecov/codecov-action@v5
3735
with:

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: julia-actions/setup-julia@latest
17+
- uses: julia-actions/setup-julia@v2
1818
with:
1919
version: 1
2020
- run: |

0 commit comments

Comments
 (0)