-
Notifications
You must be signed in to change notification settings - Fork 9
140 lines (137 loc) · 4.27 KB
/
CI.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: CI
on:
push:
branches:
- main
tags: ['*']
pull_request:
jobs:
quick-test:
name: Julia 1 - ubuntu-latest - x64 - ${{ github.event_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
arch: x64
- uses: julia-actions/julia-runtest@v1
# Skip coverage on the quick test to save serial time.
# If something is only covered here and nowhere else, it's not adequately covered.
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} - ${{ github.event_name }}
needs: quick-test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
julia-arch: x64
julia-version: nightly
- os: ubuntu-latest
julia-arch: x64
julia-version: pre
- os: ubuntu-latest
julia-arch: x64
julia-version: lts
- os: ubuntu-latest
julia-arch: x64
julia-version: min
- os: ubuntu-latest
julia-arch: x86
julia-version: 1
- os: macOS-latest
julia-arch: aarch64
julia-version: 1
- os: macOS-latest
julia-arch: x64
julia-version: 1
- os: windows-latest
julia-arch: x64
julia-version: 1
- os: windows-latest
julia-arch: x86
julia-version: 1
- os: ubuntu-latest
julia-arch: x86
julia-version: nightly
- os: ubuntu-latest
julia-arch: x86
julia-version: min
- os: macOS-latest
julia-arch: aarch64
julia-version: lts
- os: macOS-latest
julia-arch: aarch64
julia-version: pre
- os: windows-latest
julia-arch: x64
julia-version: lts
- os: windows-latest
julia-arch: x64
julia-version: pre
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
if: ${{ matrix.julia-version == 'min' && matrix.julia-arch == 'x64' || matrix.julia-version == 1 && matrix.os == 'ubuntu-latest' }}
- uses: codecov/codecov-action@v5
# Only upload two runs. We should cover everything in one of these two cases.
if: ${{ matrix.julia-version == 'min' && matrix.julia-arch == 'x64' || matrix.julia-version == 1 && matrix.os == 'ubuntu-latest' }}
with:
files: lcov.info
regression-tests:
needs: quick-test
if: github.event_name == 'pull_request'
name: RegressionTests.jl Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
runs-on: ${{ matrix.os }}
env:
RegressionTests: true
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
julia-arch: x64
julia-version: 1
- os: ubuntu-latest
julia-arch: x64
julia-version: nightly
- os: macOS-latest
julia-arch: aarch64
julia-version: pre
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-runtest@v1
docs:
name: Documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using Chairmarks
DocMeta.setdocmeta!(Chairmarks, :DocTestSetup, :(using Chairmarks); recursive=true)
doctest(Chairmarks)'
typos:
name: Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master