Debian Codegraph @

3rdparty/catch2/.github/workflows/linux-simple-builds.yml

raw symbols SCIP
1 name: Linux builds (basic)
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 name: ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
8 runs-on: ubuntu-20.04
9 strategy:
10 matrix:
11 cxx:
12 - g++-5
13 - g++-6
14 - g++-7
15 - g++-8
16 - g++-9
17 - g++-10
18 - clang++-6.0
19 - clang++-7
20 - clang++-8
21 - clang++-9
22 - clang++-10
23 build_type: [Debug, Release]
24 std: [14]
25 include:
26 - cxx: g++-5
27 other_pkgs: g++-5
28 - cxx: g++-6
29 other_pkgs: g++-6
30 - cxx: g++-7
31 other_pkgs: g++-7
32 - cxx: g++-8
33 other_pkgs: g++-8
34 - cxx: g++-9
35 other_pkgs: g++-9
36 - cxx: g++-10
37 other_pkgs: g++-10
38 - cxx: clang++-6.0
39 other_pkgs: clang-6.0
40 - cxx: clang++-7
41 other_pkgs: clang-7
42 - cxx: clang++-8
43 other_pkgs: clang-8
44 - cxx: clang++-9
45 other_pkgs: clang-9
46 - cxx: clang++-10
47 other_pkgs: clang-10
48 # Clang 6 + C++17
49 # does not work with the default libstdc++ version thanks
50 # to a disagreement on variant implementation.
51 # - cxx: clang++-6.0
52 # build_type: Debug
53 # std: 17
54 # other_pkgs: clang-6.0
55 # - cxx: clang++-6.0
56 # build_type: Release
57 # std: 17
58 # other_pkgs: clang-6.0
59 # Clang 10 + C++17
60 - cxx: clang++-10
61 build_type: Debug
62 std: 17
63 other_pkgs: clang-10
64 - cxx: clang++-10
65 build_type: Release
66 std: 17
67 other_pkgs: clang-10
68 - cxx: clang++-10
69 build_type: Debug
70 std: 20
71 other_pkgs: clang-10
72 - cxx: clang++-10
73 build_type: Release
74 std: 20
75 other_pkgs: clang-10
76 - cxx: g++-10
77 build_type: Debug
78 std: 20
79 other_pkgs: g++-10
80 - cxx: g++-10
81 build_type: Release
82 std: 20
83 other_pkgs: g++-10
84
85 steps:
86 - uses: actions/checkout@v2
87
88 - name: Add repositories for older GCC
89 run: |
90 sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic main'
91 sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic universe'
92 if: ${{ matrix.cxx == 'g++-5' || matrix.cxx == 'g++-6' }}
93
94 - name: Prepare environment
95 run: sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
96
97 - name: Configure build
98 working-directory: ${{runner.workspace}}
99 env:
100 CXX: ${{matrix.cxx}}
101 CXXFLAGS: ${{matrix.cxxflags}}
102 # Note: $GITHUB_WORKSPACE is distinct from ${{runner.workspace}}.
103 # This is important
104 run: |
105 cmake -Bbuild -H$GITHUB_WORKSPACE \
106 -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
107 -DCMAKE_CXX_STANDARD=${{matrix.std}} \
108 -DCMAKE_CXX_STANDARD_REQUIRED=ON \
109 -DCMAKE_CXX_EXTENSIONS=OFF \
110 -DCATCH_DEVELOPMENT_BUILD=ON \
111 -G Ninja
112
113 - name: Build tests + lib
114 working-directory: ${{runner.workspace}}/build
115 run: ninja
116
117 - name: Run tests
118 env:
119 CTEST_OUTPUT_ON_FAILURE: 1
120 working-directory: ${{runner.workspace}}/build
121 # Hardcode 2 cores we know are there
122 run: ctest -C ${{matrix.build_type}} -j 2