Skip to content

Commit 217200e

Browse files
authored
Update CI (#155)
* Update CI * Add JuliaPre workflow * Specify aarch64 on macos-latest * Update coverage actions to latest * Fix matrix (again)
1 parent 82f02f1 commit 217200e

File tree

2 files changed

+71
-35
lines changed

2 files changed

+71
-35
lines changed

.github/workflows/CI.yml

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,59 +6,70 @@ on:
66
- master
77
pull_request:
88

9+
# needed to allow julia-actions/cache to delete old caches that it has created
10+
permissions:
11+
actions: write
12+
contents: read
13+
14+
# Cancel existing tests on the same PR if a new commit is added to a pull request
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
17+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
18+
919
jobs:
1020
test:
11-
runs-on: ${{ matrix.os }}
12-
continue-on-error: ${{ matrix.version == 'nightly' }}
21+
runs-on: ${{ matrix.runner.os }}
1322
strategy:
1423
matrix:
15-
version:
16-
- '1.6'
17-
- '1'
18-
- nightly
19-
os:
20-
- ubuntu-latest
21-
- macOS-latest
22-
- windows-latest
23-
arch:
24-
- x86
25-
- x64
2624
num_threads:
2725
- 1
2826
- 2
29-
exclude:
30-
- os: windows-latest
31-
arch: x86
32-
- os: macOS-latest
27+
runner:
28+
- os: ubuntu-latest
29+
arch: x64
30+
version: '1'
31+
# x86
32+
- os: ubuntu-latest
3333
arch: x86
34-
- version: '1.6'
35-
num_threads: 2
36-
include:
37-
- version: '1'
38-
os: ubuntu-latest
34+
version: '1'
35+
# Minimum supported version
36+
- os: ubuntu-latest
3937
arch: x64
40-
num_threads: 1
41-
coverage: true
38+
version: 'min'
39+
# Windows
40+
- os: windows-latest
41+
arch: x64
42+
version: '1'
43+
# macOS
44+
- os: macos-latest
45+
arch: aarch64
46+
version: '1'
47+
4248
steps:
43-
- uses: actions/checkout@v2
44-
- uses: julia-actions/setup-julia@v1
45-
with:
46-
version: ${{ matrix.version }}
47-
arch: ${{ matrix.arch }}
48-
- uses: julia-actions/cache@v1
49+
- uses: actions/checkout@v4
50+
51+
- uses: julia-actions/setup-julia@v2
4952
with:
50-
cache-packages: "false" # caching Conda.jl causes precompilation error
53+
version: ${{ matrix.runner.version }}
54+
arch: ${{ matrix.runner.arch }}
55+
56+
- uses: julia-actions/cache@v2
57+
5158
- uses: julia-actions/julia-buildpkg@latest
59+
5260
- uses: julia-actions/julia-runtest@latest
5361
env:
5462
JULIA_NUM_THREADS: ${{ matrix.num_threads }}
63+
5564
- uses: julia-actions/julia-processcoverage@v1
5665
if: matrix.coverage
57-
- uses: codecov/codecov-action@v1
58-
if: matrix.coverage
66+
67+
- uses: codecov/codecov-action@v5
5968
with:
60-
file: lcov.info
61-
- uses: coverallsapp/github-action@master
69+
files: lcov.info
70+
token: ${{ secrets.CODECOV_TOKEN }}
71+
72+
- uses: coverallsapp/github-action@v2
6273
if: matrix.coverage
6374
with:
6475
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/JuliaPre.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: JuliaPre
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
# needed to allow julia-actions/cache to delete old caches that it has created
10+
permissions:
11+
actions: write
12+
contents: read
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
20+
with:
21+
version: 'pre' # pre-release
22+
arch: x64
23+
- uses: julia-actions/cache@v2
24+
- uses: julia-actions/julia-buildpkg@v1
25+
- uses: julia-actions/julia-runtest@v1

0 commit comments

Comments
 (0)