-
Notifications
You must be signed in to change notification settings - Fork 104
62 lines (55 loc) · 1.38 KB
/
linux.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
name: CI
on: [push]
jobs:
build_frozen:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cxxstandard:
- 14
- 17
- 2a
stdlib:
- libc++
- libstdc++
compiler:
- g++-10
- g++-11
- g++-12
- g++-13
- clang++-13
- clang++-14
- clang++-15
exclude:
- compiler: g++-10
stdlib: libc++
- compiler: g++-11
stdlib: libc++
- compiler: g++-12
stdlib: libc++
- compiler: g++-13
stdlib: libc++
- compiler: clang++-13
stdlib: libstdc++
- compiler: clang++-14
stdlib: libstdc++
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install libcxx
run: sudo apt install -y libc++-dev
- name: Prepare
run: cmake -E make_directory build
- name: Configure
working-directory: build
env:
CXX: ${{matrix.compiler}}
CXXFLAGS: -std=c++${{matrix.cxxstandard}} -stdlib=${{matrix.stdlib}}
run: cmake -DCMAKE_BUILD_TYPE=DEBUG "-Dfrozen.coverage=ON" -DCMAKE_VERBOSE_MAKEFILE=ON ..
- name: Build
working-directory: build
run: cmake --build .
- name: Test
working-directory: build
run: cmake --build . --target test