Skip to content

Commit 9e1502e

Browse files
committed
CI-unixish.yml: build with USE_INT128
1 parent b5da24b commit 9e1502e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/CI-unixish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
strategy:
7777
matrix:
7878
os: [ubuntu-22.04, macos-15]
79+
int128: [Off, On]
80+
# TODO: remove when GCC build works
81+
exclude:
82+
- os: ubuntu-22.04
83+
int128: On
7984
fail-fast: false # Prefer quick result
8085

8186
runs-on: ${{ matrix.os }}
@@ -92,7 +97,7 @@ jobs:
9297
- name: ccache
9398
uses: hendrikmuhs/[email protected]
9499
with:
95-
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
100+
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-${{ matrix.int128 }}
96101

97102
# TODO: move latest compiler to separate step
98103
# TODO: bail out on warnings with latest GCC
@@ -127,27 +132,30 @@ jobs:
127132
- name: Run CMake on ubuntu (with GUI)
128133
if: contains(matrix.os, 'ubuntu')
129134
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
135+
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
131136
132137
- name: Run CMake on macos (with GUI)
133138
if: contains(matrix.os, 'macos')
134139
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
140+
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
136141
137142
- name: Run CMake build
138143
run: |
139144
cmake --build cmake.output -- -j$(nproc)
140145
141146
- name: Run CMake test
147+
if: matrix.int128 == 'Off' # TODO: enable when tests work
142148
run: |
143149
cmake --build cmake.output --target check -- -j$(nproc)
144150
145151
- name: Run CTest
152+
if: matrix.int128 == 'Off' # TODO: enable when tests work
146153
run: |
147154
pushd cmake.output
148155
ctest --output-on-failure -j$(nproc)
149156
150157
- name: Run CMake install
158+
if: matrix.int128 == 'Off'
151159
run: |
152160
cmake --build cmake.output --target install
153161

0 commit comments

Comments
 (0)