-
Notifications
You must be signed in to change notification settings - Fork 11
123 lines (113 loc) · 3.17 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
name: CI
on:
pull_request:
push:
branches:
- master
- develop
- feature/**
- pr/**
jobs:
posix:
strategy:
fail-fast: false
matrix:
include:
- compiler: g++--7
cxxstd: "17"
os: ubuntu-20.04
install: g++-7
- compiler: g++--8
cxxstd: "17,2a"
os: ubuntu-20.04
install: g++-8
- compiler: g++--9
cxxstd: "17,2a"
os: ubuntu-20.04
- compiler: g++--10
cxxstd: "17,2a"
os: ubuntu-20.04
install: g++-10
- compiler: g++--11
cxxstd: "17,2a"
os: ubuntu-20.04
install: g++-11
- compiler: g++--12
cxxstd: "17,20,2b"
os: ubuntu-22.04
install: g++-12
# - toolset: clang
# compiler: clang++-6.0
# cxxstd: "17"
# os: ubuntu-18.04
# install: clang-6.0
# - toolset: clang
# compiler: clang++-7
# cxxstd: "17"
# os: ubuntu-18.04
# install: clang-7
# - toolset: clang
# compiler: clang++-8
# cxxstd: "17"
# os: ubuntu-20.04
# install: clang-8
# - toolset: clang
# compiler: clang++-9
# cxxstd: "17,2a"
# os: ubuntu-20.04
# install: clang-9
# - toolset: clang
# compiler: clang++-10
# cxxstd: "17,2a"
# os: ubuntu-20.04
# - toolset: clang
# compiler: clang++-11
# cxxstd: "17,2a"
# os: ubuntu-20.04
# - toolset: clang
# compiler: clang++-12
# cxxstd: "17,2a"
# os: ubuntu-20.04
# - toolset: clang
# compiler: clang++-13
# cxxstd: "17,20,2b"
# os: ubuntu-22.04
# install: clang-13
# - toolset: clang
# compiler: clang++-14
# cxxstd: "17,20,2b"
# os: ubuntu-22.04
# install: clang-14
# - toolset: clang
# cxxstd: "17,2a"
# os: macos-11
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- name: Install packages
if: matrix.install
run: sudo apt install ${{matrix.install}}
- name: Build
run: |
mkdir build
cd build
standards=$(sed 's/,/ /g' <<<"${{matrix.cxxstd}}")
variants="Debug Release"
err=0
for standard in ${standards} ; do
for variant in ${variants} ; do
if [[ err -ne 0 ]] ; then
echo "skipping: ${standard} ${variant}"
else
echo "running: ${standard} ${variant}"
cmake .. -DCMAKE_CXX_COMPILER=${{matrix.compiler}} -DCMAKE_CXX_STANDARD=${standard} -DCMAKE_BUILD_TYPE=${variant}
cmake --build .
err=$?
fi
done
done
[[ $err -ne 0 ]] && false || "true"
- name: Run tests
run: |
cd build/test
./driver