Skip to content
Open
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
42 changes: 42 additions & 0 deletions .github/workflows/cmake_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CMake MacOS

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-latest]
mode: [static, shared]

steps:

- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Install system deps (openmpi, hdf5, ccache,...)
run: |
brew reinstall gcc
brew install open-mpi hdf5-mpi
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Build
working-directory: ${{runner.workspace}}/build
run: |
CMAKE_CONFIG=""
[ "${{ matrix.mode }}" = "shared" ] && CMAKE_CONFIG="-DBUILD_SHARED_LIBS=ON"
cmake $GITHUB_WORKSPACE -DENABLE_SAMRAI_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Debug $CMAKE_CONFIG
make VERBOSE=1
1 change: 1 addition & 0 deletions source/SAMRAI/algs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ set (algs_sources
${CMAKE_CURRENT_BINARY_DIR}/fortran/algs_upfluxsum3d.f)

set (algs_depends
SAMRAI_mesh
SAMRAI_hier
SAMRAI_tbox
SAMRAI_pdat)
Expand Down
1 change: 1 addition & 0 deletions source/SAMRAI/appu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set_source_files_properties(
Fortran)

set (appu_depends
SAMRAI_geom
SAMRAI_hier
SAMRAI_pdat
SAMRAI_tbox)
Expand Down
1 change: 1 addition & 0 deletions source/SAMRAI/mesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ process_m4(NAME fortran/mesh_coarsentags2d)
process_m4(NAME fortran/mesh_coarsentags3d)

set (mesh_depends
SAMRAI_pdat
SAMRAI_hier
SAMRAI_tbox
SAMRAI_xfer)
Expand Down
1 change: 1 addition & 0 deletions source/SAMRAI/solv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ set_source_files_properties(
Fortran)

set (solv_depends
SAMRAI_geom
SAMRAI_hier
SAMRAI_math
SAMRAI_tbox
Expand Down