Skip to content

Commit c1c35e9

Browse files
authored
🍃 Reduce the number of unit test builds with single header (#25)
1 parent da9e76e commit c1c35e9

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/unit_tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
single_header: [0, 1]
1918
compiler:
19+
- name: clang-14
20+
single_header: 1
21+
install: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 14
22+
cc: " /usr/lib/llvm-14/bin/clang"
23+
cxx: "/usr/lib/llvm-14/bin/clang++"
2024
- name: clang-14
2125
install: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 14
2226
cc: " /usr/lib/llvm-14/bin/clang"
@@ -49,6 +53,11 @@ jobs:
4953
install: sudo apt update && sudo apt-get install -y clang-7
5054
cc: " /usr/lib/llvm-7/bin/clang"
5155
cxx: "/usr/lib/llvm-7/bin/clang++"
56+
- name: gcc-11
57+
single_header: 1
58+
install: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt-get install -y gcc-11 g++-11
59+
cc: "/usr/bin/gcc-11"
60+
cxx: "/usr/bin/g++-11"
5261
- name: gcc-11
5362
install: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt-get install -y gcc-11 g++-11
5463
cc: "/usr/bin/gcc-11"
@@ -78,7 +87,7 @@ jobs:
7887
env:
7988
CC: ${{ matrix.compiler.cc }}
8089
CXX: ${{ matrix.compiler.cxx }}
81-
SINGLE_HEADER: ${{ matrix.single_header }}
90+
SINGLE_HEADER: ${{ matrix.compiler.single_header }}
8291
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
8392

8493
- name: Build Unit Tests

0 commit comments

Comments
 (0)