Skip to content

Commit b67834b

Browse files
authored
Split test by gcc version
1 parent 3f1309d commit b67834b

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/build.yml

+29-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,40 @@ name: Test Scalr
33
on: push
44

55
jobs:
6-
test:
6+
test-older-gcc:
77
runs-on: ubuntu-latest
88
container: gcc:${{matrix.gcc_version}}
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
gcc_version: [5, 6, 7, 8, 9, 10, 11, 12, 13]
12+
gcc_version: [5, 6, 7, 8, 9, 10, 11]
13+
cmake_version: ["3.22.6"]
14+
catch2_version: ["3.4.0"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install CMake binary release
20+
run: |
21+
curl -L https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_version}}/cmake-${{matrix.cmake_version}}-linux-x86_64.sh > /tmp/cmake_install.sh
22+
sh /tmp/cmake_install.sh --skip-license --prefix=/
23+
24+
- name: Build and install Catch2v3 from source
25+
run: |
26+
git clone --depth 1 --branch v${{matrix.catch2_version}} https://github.com/catchorg/Catch2.git /tmp/catch2
27+
cmake -S/tmp/catch2 -B/tmp/catch2/build -DBUILD_TESTING=OFF -DCATCH_INSTALL_DOCS=OFF
28+
cmake --build /tmp/catch2/build/ --target install -j$(nproc)
29+
30+
- name: Run unit tests
31+
run: make test
32+
33+
test-newer-gcc:
34+
runs-on: ubuntu-latest
35+
container: gcc:${{matrix.gcc_version}}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
gcc_version: [12, 13]
1340
catch2_version: ["3.4.0"]
1441

1542
steps:

0 commit comments

Comments
 (0)