-
Notifications
You must be signed in to change notification settings - Fork 149
108 lines (108 loc) · 3.07 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
name: CI
on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.group }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
matrix:
version:
- '1.6'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
include:
- arch: x86
version: '1.6'
os: ubuntu-latest
group: 'group-A'
- arch: x86
version: '1'
os: ubuntu-latest
group: 'group-A'
- arch: x86
version: 'nightly'
os: ubuntu-latest
group: 'group-A'
- arch: x86
version: '1.6'
os: windows-latest
group: 'group-A'
- arch: x86
version: '1'
os: windows-latest
group: 'group-A'
- arch: x86
version: 'nightly'
os: windows-latest
group: 'group-A'
- arch: x86
version: '1.6'
os: ubuntu-latest
group: 'group-B'
- arch: x86
version: '1'
os: ubuntu-latest
group: 'group-B'
- arch: x86
version: 'nightly'
os: ubuntu-latest
group: 'group-B'
- arch: x86
version: '1.6'
os: windows-latest
group: 'group-B'
- arch: x86
version: '1'
os: windows-latest
group: 'group-B'
- arch: x86
version: 'nightly'
os: windows-latest
group: 'group-B'
exclude:
# Remove some configurations from the build matrix to reduce CI time.
# See https://github.com/marketplace/actions/setup-julia-environment
# MacOS not available on x86
- {os: 'macOS-latest', arch: 'x86'}
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
STATICARRAYS_TEST_GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-uploadcodecov@latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
- run: julia --project=docs -e '
using Pkg;
Pkg.develop(PackageSpec(; path=pwd()));
Pkg.instantiate();'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}