-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 1.02 KB
/
ice.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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!"