-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.54 KB
/
ice2.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
37
38
39
40
41
42
43
44
45
46
47
name: 'Test on ICE - lapack'
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@v3
- name: Build
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-with-lapack
# will stop on any errors
- name: Compile Common
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
cd common
make .depend
make
echo "/common compiled successfully!"
- name: Compile Example 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
base_dir="examples"
cases=$(find "$base_dir" -maxdepth 1 -type d ! -path "$base_dir")
for case in $cases; do
make -C "$case" .depend
make -C "$case"
done
echo "All cases in /examples compiled successfully!"