Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: macOS w/ AppleClang #122

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading