@@ -16,11 +16,52 @@ jobs:
1616 fail-fast : false
1717 matrix :
1818 compiler :
19+ # test the generated single header
1920 - name : clang-14
2021 single_header : 1
2122 install : wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 14
2223 cc : " /usr/lib/llvm-14/bin/clang"
2324 cxx : " /usr/lib/llvm-14/bin/clang++"
25+ - name : gcc-11
26+ single_header : 1
27+ install : sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt-get install -y gcc-11 g++-11
28+ cc : " /usr/bin/gcc-11"
29+ cxx : " /usr/bin/g++-11"
30+
31+ # test c++20 build
32+ - name : clang-14
33+ cxx_standard : 20
34+ install : wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 14
35+ cc : " /usr/lib/llvm-14/bin/clang"
36+ cxx : " /usr/lib/llvm-14/bin/clang++"
37+ - name : clang-13
38+ cxx_standard : 20
39+ install : wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 13
40+ cc : " /usr/lib/llvm-13/bin/clang"
41+ cxx : " /usr/lib/llvm-13/bin/clang++"
42+ - name : clang-12
43+ cxx_standard : 20
44+ install : sudo apt update && sudo apt-get install -y clang-12
45+ cc : " /usr/lib/llvm-12/bin/clang"
46+ cxx : " /usr/lib/llvm-12/bin/clang++"
47+ - name : clang-11
48+ cxx_standard : 20
49+ install : sudo apt update && sudo apt-get install -y clang-11
50+ cc : " /usr/lib/llvm-11/bin/clang"
51+ cxx : " /usr/lib/llvm-11/bin/clang++"
52+ # gcc-11 c++20 is disabled because it fails to compile the unit tests
53+ # - name: gcc-11
54+ # cxx_standard: 20
55+ # install: sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt-get install -y gcc-11 g++-11
56+ # cc: "/usr/bin/gcc-11"
57+ # cxx: "/usr/bin/g++-11"
58+ - name : gcc-10
59+ cxx_standard : 20
60+ install : sudo apt update && sudo apt-get install -y gcc-10
61+ cc : " /usr/bin/gcc-10"
62+ cxx : " /usr/bin/g++-10"
63+
64+ # test c++17 build
2465 - name : clang-14
2566 install : wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 14
2667 cc : " /usr/lib/llvm-14/bin/clang"
5394 install : sudo apt update && sudo apt-get install -y clang-7
5495 cc : " /usr/lib/llvm-7/bin/clang"
5596 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"
97+
6198 - name : gcc-11
6299 install : sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt-get install -y gcc-11 g++-11
63100 cc : " /usr/bin/gcc-11"
88125 CC : ${{ matrix.compiler.cc }}
89126 CXX : ${{ matrix.compiler.cxx }}
90127 SINGLE_HEADER : ${{ matrix.compiler.single_header }}
128+ CXX_STANDARD : ${{ matrix.compiler.cxx_standard }}
91129 run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
92130
93131 - name : Build Unit Tests
0 commit comments