-
Notifications
You must be signed in to change notification settings - Fork 19
75 lines (75 loc) · 2.64 KB
/
CI.yml
File metadata and controls
75 lines (75 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI
on:
push:
branches: [main, master]
tags: ["*"]
pull_request:
concurrency:
# Skip intermediate builds: all builds except for builds on the `main` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.0'
- '1.1'
- '1.2'
- '1.3'
- '1.4'
- '1.5'
- '1.6' # old LTS
- '1.7'
- '1.8'
- '1.9'
- '1.10' # current LTS
- '1.11'
- '1.12.3'
- '1.12'
- '1.13-nightly' # TODO: Change this to '1.13' once Julia 1.13.0 has been released
- 'nightly'
os:
- ubuntu-latest
- windows-latest
# macOS is handled separately, in the `include` section below
julia-wordsize:
# The `julia-wordsize` variable only controls the word size of the Julia binaries that we use
# It doesn't affect the CPU architecture of the underlying GitHub Actions runner (virtual machine).
- '32'
- '64'
include:
# We are capped to a total of 5 concurrent macOS jobs across
# the entire JuliaTesting GitHub organization.
# Therefore, instead of testing every Julia version on macOS,
# we only test Julia LTS and Julia v1
- os: macos-latest # Apple Silicon macOS
version: 'lts'
- os: macos-15-intel # Intel macOS
version: 'lts'
- os: macos-latest # Apple Silicon macOS
version: '1'
- os: macos-15-intel # Intel macOS
version: '1'
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
# If `julia-wordsize` is 32, then set the Julia arch to x76
# If `julia-wordsize` is 64, then set the Julia arch to ${{ runner.arch }}
# ${{ runner.arch }} automatically expands to the correct 64-bit value, either X64 or ARM64
arch: ${{ (matrix.julia-wordsize == '32') && 'x86' || runner.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}