-
Notifications
You must be signed in to change notification settings - Fork 1
104 lines (94 loc) · 3.13 KB
/
Copy pathlinux.yml
File metadata and controls
104 lines (94 loc) · 3.13 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
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
name: Linux CI
on:
push:
branches:
- main
pull_request:
env:
CXXFLAGS: -Wall -Wextra -Wconversion -Wsign-conversion -pedantic -fno-omit-frame-pointer
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [GCC-13, GCC-14, GCC-15, GCC-16, Clang-17, Clang-18, Clang-19, Clang-20, Clang-21, Clang-22, Clang-23]
build_type: [Debug, Release]
include:
- compiler: GCC-13
cxx: g++-13
build_module: false
install: |
brew install gcc@13 ninja binutils
- compiler: GCC-14
cxx: g++-14
build_module: false
install: |
brew install gcc@14 ninja binutils
- compiler: GCC-15
cxx: g++-15
build_module: true
install: |
brew install gcc@15 ninja binutils
- compiler: GCC-16
cxx: g++-16
build_module: true
install: |
brew install gcc@16 ninja binutils
- compiler: Clang-17
cxx: $(brew --prefix llvm@17)/bin/clang++
build_module: false
install: |
brew install llvm@17 ninja binutils
- compiler: Clang-18
cxx: $(brew --prefix llvm@18)/bin/clang++
build_module: true
install: |
brew install llvm@18 ninja binutils
- compiler: Clang-19
cxx: $(brew --prefix llvm@19)/bin/clang++
build_module: true
install: |
brew install llvm@19 ninja binutils
- compiler: Clang-20
cxx: $(brew --prefix llvm@20)/bin/clang++
build_module: true
install: |
brew install llvm@20 ninja binutils
- compiler: Clang-21
cxx: $(brew --prefix llvm@21)/bin/clang++
build_module: true
install: |
brew install llvm@21 ninja binutils
- compiler: Clang-22
cxx: $(brew --prefix llvm@22)/bin/clang++
build_module: true
install: |
brew install llvm@22 ninja binutils
- compiler: Clang-23
cxx: $(brew --prefix llvm@23)/bin/clang++
build_module: true
install: |
brew install llvm@23 ninja binutils
steps:
- uses: actions/checkout@master
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@1f8e202ffddf94def7f42f6fa3a482e821489f9c
- name: Create Build Environment
run: |
${{matrix.install}}
- name: Configure
run: |
cmake -B build -GNinja \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_CXX_COMPILER=${{matrix.cxx}} \
-DCMAKE_CXX_EXTENSIONS=Off \
-DCMAKE_COMPILE_WARNING_AS_ERROR=On \
-DCMAKE_LINK_WARNING_AS_ERROR=On \
-DTCB_POINTER_BUILD_MODULE=${{matrix.build_module}}
- name: Build
run: cmake --build build
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}}
env:
CTEST_OUTPUT_ON_FAILURE: True