File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments