-
Notifications
You must be signed in to change notification settings - Fork 24
62 lines (57 loc) · 2.12 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
name: CI
on: [push, pull_request]
jobs:
linux-build-test-minimum-compiler-version:
runs-on: ubuntu-latest
container:
image: docker://banditcpp/build-environments:debian-stretch-compilers
strategy:
matrix:
cxx-standard: ["11"]
compiler-env: ["CC=gcc-6 CXX=g++-6", "CC=clang-3.9 CXX=clang++-3.9"]
steps:
- name: Clone and checkout commit
uses: actions/checkout@v3
- name: Build C++${{ matrix.cxx-standard }} version with ${{ matrix.compiler-env }} and run tests
run:
${{ matrix.compiler-env }} util/build.sh ${{ matrix.cxx-standard }}
linux-build-test-recent-gcc:
runs-on: ubuntu-latest
container:
image: docker://banditcpp/build-environments:gcc-13
strategy:
matrix:
cxx-standard: ["11", "14", "17", "20", "23"]
steps:
- name: Clone and checkout commit
uses: actions/checkout@v3
- name: Build C++${{ matrix.cxx-standard }} version with recent gcc and run tests
run:
${{ matrix.compiler-env }} util/build.sh ${{ matrix.cxx-standard }}
linux-build-test-recent-clang:
runs-on: ubuntu-latest
container:
image: docker://banditcpp/build-environments:clang-16
strategy:
matrix:
cxx-standard: ["11", "14", "17", "20", "23"]
steps:
- name: Clone and checkout commit
uses: actions/checkout@v3
- name: Build C++${{ matrix.cxx-standard }} version with recent clang and run tests
run:
${{ matrix.compiler-env }} util/build.sh ${{ matrix.cxx-standard }}
windows-2022-build-test:
runs-on: windows-2022
strategy:
matrix:
cxx-standard: ["11", "14", "17", "20", "23"]
steps:
- name: Clone and checkout commit
uses: actions/checkout@v3
- name: Let CMake generate build configuration
run: cmake -G "Visual Studio 17 2022" -DSNOWHOUSE_RUN_TESTS=0 -DSNOWHOUSE_BUILD_TESTS=1 -DSNOWHOUSE_CXX_STANDARD=C++${{ matrix.cxx-standard }} .
- name: Build tests with MSVC and C++${{ matrix.cxx-standard }}
run: cmake --build .
- name: Run tests
run: bin\Debug\snowhouse-tests.exe