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 2bac000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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
10 changes: 2 additions & 8 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@ 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
tests-macos:
name: AppleClang@14.0 GFortran@12.2 [tutorials]
name: AppleClang@15.0 GFortran@14.1 [tutorials]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Dependencies
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 2bac000

Please sign in to comment.