Skip to content

Commit de55dd9

Browse files
committed
CI: Run configure before cmake on macOS
Invoking configure from within cmake on macOS results in a broken c++ compiler check using system clang++. Work around this by running configure first outside of cmake.
1 parent 5865b1e commit de55dd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ jobs:
236236
export CC
237237
export CXX
238238
export PYTHON
239+
# workaround for macos runners not being able to properly test the native clang++ from within cmake
240+
if [[ ${{ matrix.config.os }} = macos* ]]; then
241+
./autogen.sh
242+
./configure
243+
fi
239244
mkdir -p ${{ github.workspace }}/cmake-build-debug && cd ${{ github.workspace }}/cmake-build-debug
240245
cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ${{ github.workspace }}
241246

0 commit comments

Comments
 (0)