Skip to content

Commit e108432

Browse files
committed
CI-unixish.yml: test various BUILD_* CMake option combination
1 parent 1bbf84e commit e108432

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,46 @@ jobs:
151151
run: |
152152
cmake --build cmake.output --target install
153153
154+
- name: Run CMake on ubuntu (no CLI)
155+
if: matrix.os == 'ubuntu-22.04'
156+
run: |
157+
cmake -S . -B cmake.output_nocli -G "Unix Makefiles" -DBUILD_CLI=Off
158+
159+
- name: Run CMake on ubuntu (no CLI / with tests)
160+
if: matrix.os == 'ubuntu-22.04'
161+
run: |
162+
# the test and CLI code are too intertwined so for now we need to reject that
163+
if cmake -S . -B cmake.output_nocli_tests -G "Unix Makefiles" -DBUILD_TESTS=On -DBUILD_CLI=Off; then
164+
exit 1
165+
else
166+
exit 0
167+
fi
168+
169+
- name: Run CMake on ubuntu (no CLI / with GUI)
170+
if: matrix.os == 'ubuntu-22.04'
171+
run: |
172+
cmake -S . -B cmake.output_nocli_gui -G "Unix Makefiles" -DBUILD_CLI=Off -DBUILD_GUI=On
173+
174+
- name: Run CMake on ubuntu (no GUI)
175+
if: matrix.os == 'ubuntu-22.04'
176+
run: |
177+
cmake -S . -B cmake.output_nogui -G "Unix Makefiles" -DBUILD_GUI=Off
178+
179+
- name: Run CMake on ubuntu (no GUI / with triage)
180+
if: matrix.os == 'ubuntu-22.04'
181+
run: |
182+
# cannot build triage without GUI
183+
if cmake -S . -B cmake.output_nogui_triage -G "Unix Makefiles" -DBUILD_GUI=Off -DBUILD_TRIAGE=On; then
184+
exit 1
185+
else
186+
exit 0
187+
fi
188+
189+
- name: Run CMake on ubuntu (no CLI / no GUI)
190+
if: matrix.os == 'ubuntu-22.04'
191+
run: |
192+
cmake -S . -B cmake.output_nocli_nogui -G "Unix Makefiles" -DBUILD_GUI=Off
193+
154194
build_uchar:
155195

156196
strategy:

0 commit comments

Comments
 (0)