Skip to content

Mac build (#46)

Mac build (#46) #178

Workflow file for this run

name: 'Test on ICE'
on:
push:
pull_request:
workflow_dispatch:
jobs:
self:
name: ICE Runner
runs-on:
labels: ice
if: github.repository == 'Comp-Physics/RBC3D'
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
# use mkl option
- name: Build Packages
run: |
module load gcc/12.3.0 mvapich2/2.3.7-1 netcdf-c hdf5/1.14.1-2-mva2 intel-oneapi-mkl/2023.1.0 python/3.10.10 fftw/3.3.10-mva2 cmake
./rbc.sh install-ice
# will stop on any errors
- name: Compile Cases
run: |
module load gcc/12.3.0 mvapich2/2.3.7-1 netcdf-c hdf5/1.14.1-2-mva2 intel-oneapi-mkl/2023.1.0 python/3.10.10 fftw/3.3.10-mva2 cmake
set -e -x
export PETSC_DIR=`pwd`/packages/petsc-3.21.3
export PETSC_ARCH=arch-linux-c-opt
mkdir build
cd build
cmake ..
make
echo "/common and all cases in /examples compiled successfully!"