Skip to content

Commit 66020f6

Browse files
committed
Update CI setup
1 parent d0d180f commit 66020f6

File tree

1 file changed

+49
-38
lines changed

1 file changed

+49
-38
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,69 @@ 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+
914
jobs:
1015
test:
11-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
12-
runs-on: ${{ matrix.os }}
13-
continue-on-error: ${{ matrix.version == 'nightly' }}
16+
name: Julia ${{ matrix.runner.version }} - ${{ matrix.runner.os }} - ${{ matrix.runner.arch }} - ${{ github.event_name }}
17+
runs-on: ${{ matrix.runner.os }}
1418
strategy:
19+
fail-fast: false
1520
matrix:
16-
version:
17-
- '1.7'
18-
- '1'
19-
- 'nightly'
20-
os:
21-
- ubuntu-latest
22-
- macOS-latest
23-
- windows-latest
24-
arch:
25-
- x64
26-
- x86
27-
exclude:
28-
- os: macOS-latest
21+
runner:
22+
# Default
23+
- version: '1'
24+
os: ubuntu-latest
25+
arch: x64
26+
num_threads: 1
27+
# x86
28+
- version: '1'
29+
os: ubuntu-latest
2930
arch: x86
30-
include:
31+
num_threads: 1
32+
# Multithreaded
33+
- version: '1'
34+
os: ubuntu-latest
35+
arch: x64
36+
num_threads: 2
37+
# Windows
38+
- version: '1'
39+
os: windows-latest
40+
arch: x64
41+
num_threads: 1
42+
# macOS
3143
- version: '1'
44+
os: macos-latest
45+
arch: aarch64
46+
num_threads: 1
47+
# Minimum supported Julia version
48+
- version: 'min'
3249
os: ubuntu-latest
3350
arch: x64
34-
coverage: true
51+
num_threads: 1
52+
# Pre-release Julia version
53+
- version: 'pre'
54+
os: ubuntu-latest
55+
arch: x64
56+
num_threads: 1
3557
steps:
36-
- uses: actions/checkout@v2
37-
- uses: julia-actions/setup-julia@v1
38-
with:
39-
version: ${{ matrix.version }}
40-
arch: ${{ matrix.arch }}
41-
- uses: actions/cache@v1
42-
env:
43-
cache-name: cache-artifacts
58+
- uses: actions/checkout@v4
59+
- uses: julia-actions/setup-julia@v2
4460
with:
45-
path: ~/.julia/artifacts
46-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
47-
restore-keys: |
48-
${{ runner.os }}-test-${{ env.cache-name }}-
49-
${{ runner.os }}-test-
50-
${{ runner.os }}-
61+
version: ${{ matrix.runner.version }}
62+
arch: ${{ matrix.runner.arch }}
63+
- uses: julia-actions/cache@v2
5164
- uses: julia-actions/julia-buildpkg@v1
5265
- uses: julia-actions/julia-runtest@v1
5366
- uses: julia-actions/julia-processcoverage@v1
54-
if: matrix.coverage
55-
- uses: codecov/codecov-action@v1
56-
if: matrix.coverage
67+
- uses: codecov/codecov-action@v5
5768
with:
58-
file: lcov.info
59-
- uses: coverallsapp/github-action@master
60-
if: matrix.coverage
69+
files: lcov.info
70+
token: ${{ secrets.CODECOV_TOKEN }}
71+
- uses: coverallsapp/github-action@v2
6172
with:
6273
github-token: ${{ secrets.GITHUB_TOKEN }}
6374
path-to-lcov: lcov.info

0 commit comments

Comments
 (0)