Skip to content

Commit 6de9b0a

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

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ jobs:
7676
strategy:
7777
matrix:
7878
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
7987
fail-fast: false # Prefer quick result
8088

8189
runs-on: ${{ matrix.os }}
@@ -92,7 +100,7 @@ jobs:
92100
- name: ccache
93101
uses: hendrikmuhs/ccache-action@v1.2
94102
with:
95-
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
103+
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}-${{ matrix.int128 }}
96104

97105
# TODO: move latest compiler to separate step
98106
# TODO: bail out on warnings with latest GCC
@@ -127,27 +135,30 @@ jobs:
127135
- name: Run CMake on ubuntu (with GUI)
128136
if: contains(matrix.os, 'ubuntu')
129137
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
131139
132140
- name: Run CMake on macos (with GUI)
133141
if: contains(matrix.os, 'macos')
134142
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
136144
137145
- name: Run CMake build
138146
run: |
139147
cmake --build cmake.output -- -j$(nproc)
140148
141149
- name: Run CMake test
150+
if: matrix.int128 == 'Off' # TODO: enable when tests work
142151
run: |
143152
cmake --build cmake.output --target check -- -j$(nproc)
144153
145154
- name: Run CTest
155+
if: matrix.int128 == 'Off' # TODO: enable when tests work
146156
run: |
147157
pushd cmake.output
148158
ctest --output-on-failure -j$(nproc)
149159
150160
- name: Run CMake install
161+
if: matrix.int128 == 'Off'
151162
run: |
152163
cmake --build cmake.output --target install
153164

0 commit comments

Comments
 (0)