Skip to content

Commit 57589e3

Browse files
committed
s
1 parent 2e3d3f6 commit 57589e3

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,26 @@ jobs:
3939
with:
4040
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
4141

42-
- name: CMake build on macOS (force Boost)
42+
- name: CMake build on macOS (force Boost - not available)
4343
run: |
44-
set +e
45-
# make sure we fail when Boost is requested and not available
46-
# will fail because no package configuration is available
47-
cmake -S . -B cmake.output.boost-force -G "Unix Makefiles" -DUSE_BOOST=On
48-
exit $(($? ? 1 : 0))
44+
# make sure we fail when Boost is requested and not available.
45+
# will fail because no package configuration is available.
46+
if cmake -S . -B cmake.output.boost-force -G "Unix Makefiles" -DUSE_BOOST=On; then
47+
exit 1
48+
else
49+
exit 0
50+
fi
4951
5052
# coreutils contains "nproc"
5153
- name: Install missing software on macos
5254
run: |
5355
brew install coreutils boost
5456
55-
- name: CMake build on macOS (no Boost)
57+
- name: CMake build on macOS (force Boost - no build)
58+
run: |
59+
cmake -S . -B cmake.output.boost-force -G "Unix Makefiles" -DUSE_BOOST=On
60+
61+
- name: CMake build on macOS (no Boost - no build)
5662
run: |
5763
# make sure Boost is not used when disabled even though it is available
5864
cmake -S . -B cmake.output.boost-no -G "Unix Makefiles" -DUSE_BOOST=Off

0 commit comments

Comments
 (0)