Skip to content

Cmake

Cmake #46

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: |
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-c/4.9.2-mva2-hdf5-1.14 netcdf-cxx/4.2-mva2-hdf5-1.14 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva
bash rbc.sh install
# will stop on any errors
- name: Compile Cases
run: |
ml gcc/12.3.0 mvapich2/2.3.7-1 intel-oneapi-mkl/2023.1.0 python/3.10.10 netcdf-c/4.9.2-mva2-hdf5-1.14 netcdf-cxx/4.2-mva2-hdf5-1.14 netcdf-fortran/4.6.0-mva2-hdf5-1.14 fftw/3.3.10-mva
set -e -x
export PETSC_DIR=`pwd`/RBC3D/packages/petsc-3.19.6
export PETSC_ARCH=arch-linux-c-opt
echo $PETSC_DIR
echo $PETSC_ARCH
mkdir build
cd build
cmake ..
make
echo "/common and all cases in /examples compiled successfully!"