Skip to content

Commit

Permalink
CI: Build with -O2 on macOS 13 (Intel CPU)
Browse files Browse the repository at this point in the history
The tests `SD_H1BasisEvaluation` and `SD_LinearFormsAssembly` are
failing on macOS 13 (Intel CPU) at optimization level `-O3`.
They are passing when ElmerFEM is built with optimization level `-O2`.

Switch the build type to "RelWithDebInfo" for that runner as a
work-around.
  • Loading branch information
mmuetzel committed Jan 28, 2025
1 parent f1de90a commit 2f68c6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-macos-homebrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ jobs:
- name: configure
env:
LDFLAGS: ${{ matrix.openmp == 'with' && format('-L{0}/opt/libomp/lib -lomp', env.HOMEBREW_PREFIX) || '' }}
# The tests `SD_H1BasisEvaluation` and `SD_LinearFormsAssembly` are
# failing on macos-13 (Intel CPU) at optimization level `-O3`.
# They are passing if ElmerFEM is built with optimization level `-O2`.
run: |
mkdir ${GITHUB_WORKSPACE}/build
cd ${GITHUB_WORKSPACE}/build
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_BUILD_TYPE=${{ matrix.os == 'macos-13' && 'RelWithDebInfo' || 'Release' }} \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_Fortran_COMPILER=gfortran \
Expand Down

0 comments on commit 2f68c6c

Please sign in to comment.