Skip to content

Commit

Permalink
CI: macOS w/ AppleClang
Browse files Browse the repository at this point in the history
Change macOS CI to use the native system compiler,
AppleClang, for C/C++ and only gfortran for the Fortran part.

Try to unbreak macOS CI failures.
  • Loading branch information
ax3l committed May 30, 2024
1 parent 2595b37 commit 3a8f947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependencies/dependencies_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
set -eu -o pipefail

brew update
brew reinstall gcc || true
brew install gfortran || true
brew install libomp || true
brew install open-mpi || true
brew install ccache || true
8 changes: 1 addition & 7 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: macos
on: [push, pull_request]

env:
CXXFLAGS: "-Werror -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -fno-operator-names"
CXXFLAGS: "-Werror -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -fno-operator-names -Wno-pass-failed"

jobs:
# Build all tutorials
Expand All @@ -16,8 +16,6 @@ jobs:
run: .github/workflows/dependencies/dependencies_mac.sh
- name: Build & Install
run: |
export LIBRARY_PATH=/usr/local/opt/gcc/lib/gcc/current
cd ExampleCodes
cmake -S . -B build \
-DBUILD_SHARED_LIBS=ON \
Expand All @@ -28,8 +26,6 @@ jobs:
-DAMReX_FORTRAN_INTERFACES=ON \
-DAMReX_EB=ON \
-DAMReX_PARTICLES=ON \
-DCMAKE_C_COMPILER=$(which gcc) \
-DCMAKE_CXX_COMPILER=$(which g++) \
-DCMAKE_Fortran_COMPILER=$(which gfortran) \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache)
cmake --build build --parallel 2
Expand All @@ -42,8 +38,6 @@ jobs:
-DAMReX_FORTRAN_INTERFACES=ON \
-DAMReX_EB=ON \
-DAMReX_PARTICLES=ON \
-DCMAKE_C_COMPILER=$(which gcc) \
-DCMAKE_CXX_COMPILER=$(which g++) \
-DCMAKE_Fortran_COMPILER=$(which gfortran) \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache)
cmake --build build --parallel 2
Expand Down

0 comments on commit 3a8f947

Please sign in to comment.