Skip to content

Commit

Permalink
Merge pull request #122 from ax3l/ci-macos-appleclang
Browse files Browse the repository at this point in the history
CI: macOS w/ AppleClang
  • Loading branch information
ax3l committed May 30, 2024
2 parents 2595b37 + 405eaec commit 844890b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/dependencies/dependencies_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
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

# verify installation
gfortran --version
otool -L $(which gfortran)
10 changes: 3 additions & 7 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ 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
export LIBRARY_PATH=/opt/homebrew/opt/gcc/lib/gcc/current/
cd ExampleCodes
cmake -S . -B build \
Expand All @@ -28,8 +28,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 +40,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 844890b

Please sign in to comment.