|
76 | 76 | strategy: |
77 | 77 | matrix: |
78 | 78 | os: [ubuntu-22.04, macos-15] |
| 79 | + #int128: [Off, On] # TODO: use this when GCC build works |
| 80 | + include: |
| 81 | + - os: ubuntu-22.04 |
| 82 | + int128: Off |
| 83 | + - os: macos-15 |
| 84 | + int128: Off |
| 85 | + - os: macos-15 |
| 86 | + int128: On |
79 | 87 | fail-fast: false # Prefer quick result |
80 | 88 |
|
81 | 89 | runs-on: ${{ matrix.os }} |
|
92 | 100 | - name: ccache |
93 | 101 | uses: hendrikmuhs/ccache-action@v1.2 |
94 | 102 | with: |
95 | | - key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }} |
| 103 | + key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-${{ matrix.int128 }} |
96 | 104 |
|
97 | 105 | # TODO: move latest compiler to separate step |
98 | 106 | # TODO: bail out on warnings with latest GCC |
@@ -127,27 +135,30 @@ jobs: |
127 | 135 | - name: Run CMake on ubuntu (with GUI) |
128 | 136 | if: contains(matrix.os, 'ubuntu') |
129 | 137 | run: | |
130 | | - cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install |
| 138 | + cmake -S . -B cmake.output -G "Unix Makefiles" -DUSE_INT128=${{ matrix.int128 }} -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install |
131 | 139 |
|
132 | 140 | - name: Run CMake on macos (with GUI) |
133 | 141 | if: contains(matrix.os, 'macos') |
134 | 142 | run: | |
135 | | - cmake -S . -B cmake.output -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DQt6_DIR=$(brew --prefix qt@6)/lib/cmake/Qt6 |
| 143 | + cmake -S . -B cmake.output -G "Unix Makefiles" -DUSE_INT128=${{ matrix.int128 }} -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=cppcheck-cmake-install -DQt6_DIR=$(brew --prefix qt@6)/lib/cmake/Qt6 |
136 | 144 |
|
137 | 145 | - name: Run CMake build |
138 | 146 | run: | |
139 | 147 | cmake --build cmake.output -- -j$(nproc) |
140 | 148 |
|
141 | 149 | - name: Run CMake test |
| 150 | + if: matrix.int128 == 'Off' # TODO: enable when tests work |
142 | 151 | run: | |
143 | 152 | cmake --build cmake.output --target check -- -j$(nproc) |
144 | 153 |
|
145 | 154 | - name: Run CTest |
| 155 | + if: matrix.int128 == 'Off' # TODO: enable when tests work |
146 | 156 | run: | |
147 | 157 | pushd cmake.output |
148 | 158 | ctest --output-on-failure -j$(nproc) |
149 | 159 |
|
150 | 160 | - name: Run CMake install |
| 161 | + if: matrix.int128 == 'Off' |
151 | 162 | run: | |
152 | 163 | cmake --build cmake.output --target install |
153 | 164 |
|
|
0 commit comments