|
8 | 8 | fail-fast: false |
9 | 9 | matrix: |
10 | 10 | os: [windows-latest, ubuntu-latest, macos-latest] |
11 | | - toolchain: [msvc, gcc, clang] |
| 11 | + toolchain: [msvc, gcc, clang, clang12, gcc12] |
12 | 12 | exclude: |
13 | 13 | - os: ubuntu-latest |
14 | 14 | toolchain: msvc |
15 | 15 | - os: ubuntu-latest # TODO: Remove this one once the clang with libc++ is fixed |
16 | | - toolchain: clang |
| 16 | + toolchain: clang clang12 |
17 | 17 | - os: macos-latest |
18 | 18 | toolchain: msvc |
19 | 19 | - os: macos-latest # TODO: Remove this one once the clang of the system is fixed |
20 | 20 | toolchain: gcc |
21 | 21 | - os: macos-latest # TODO: Remove this one once the clang on macos is fixed |
22 | 22 | toolchain: clang |
23 | 23 | - os: windows-latest |
24 | | - toolchain: gcc |
| 24 | + toolchain: gcc gcc12 |
25 | 25 |
|
26 | 26 | name: Build & Run Tests |
27 | 27 | runs-on: ${{ matrix.os }} |
@@ -52,23 +52,23 @@ jobs: |
52 | 52 | - run: echo "🍏 This job's status is ${{ job.status }}." |
53 | 53 |
|
54 | 54 | - name: Install recent LLVM and Clang |
55 | | - if: matrix.toolchain == 'clang' |
| 55 | + if: startsWith('clang', matrix.toolchain) |
56 | 56 | uses: KyleMayes/install-llvm-action@v1 |
57 | 57 | with: |
58 | 58 | version: "16" |
59 | 59 |
|
60 | 60 | - name: Install recent GCC |
61 | | - if: matrix.toolchain == 'gcc' |
| 61 | + if: startsWith('gcc', matrix.toolchain) |
62 | 62 | uses: egor-tensin/setup-gcc@v1 |
63 | 63 | with: |
64 | 64 | version: "12" |
65 | 65 | platform: x64 |
66 | 66 |
|
67 | 67 | - name: Info about clang |
68 | | - if: matrix.toolchain == 'clang' |
| 68 | + if: startswith('clang', matrix.toolchain) |
69 | 69 | run: clang++ --version |
70 | 70 | - name: Info about gcc |
71 | | - if: matrix.toolchain == 'gcc' |
| 71 | + if: startsWith('gcc', matrix.toolchain) |
72 | 72 | run: g++ --version |
73 | 73 | # We omit trying to find `cl` from msvc because it's annoying, and the info is already in steps below. |
74 | 74 | - name: Info about toolchain |
|
78 | 78 | if: runner.os == 'Linux' |
79 | 79 | shell: bash |
80 | 80 | run: sudo apt-get update && sudo apt-get install -y libx11-dev libxrandr-dev libudev-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev xorg-dev libvulkan-dev |
81 | | - |
| 81 | + |
82 | 82 | - name: Create all build configurations |
83 | 83 | shell: bash |
84 | 84 | run: ./init-configs.sh ${{ matrix.toolchain }} |
|
0 commit comments