-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 2.18 KB
/
ubuntu-20.04_gnu.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
48
49
50
51
52
53
54
55
name: Compile Poseidon on Ubuntu 20.04 with gnu compilers
on: [ push, pull_request ]
jobs:
compile-with-amrex_gnu:
name: Compile Poseidon on Ubuntu 20.04 with gnu compilers
runs-on: ubuntu-20.04
timeout-minutes: 10
env:
POSEIDON_MACHINE_NAME: github_ubuntu-20.04_gnu
steps:
- name: Checkout Poseidon
uses: actions/checkout@v3
- name: Checkout amrex
uses: actions/checkout@v3
with:
repository: dunhamsj/amrex
path: amrex
ref: MeshRefinement_DG
- name: Update Ubuntu
run: |
sudo apt-get -y install libhdf5-dev
sudo apt-get -y install mpich
sudo apt-get -y update
- name: Set Environment Variables
run: |
echo "POSEIDON_ACTIVE_DIR=${GITHUB_WORKSPACE}" >> ${GITHUB_ENV}
echo "AMREX_DIR=${GITHUB_WORKSPACE}/amrex" >> ${GITHUB_ENV}
echo "HDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/serial" >> ${GITHUB_ENV}
echo "LAPACK_ROOT=/usr/lib/x86_64-linux-gnu/lapack" >> ${GITHUB_ENV}
echo "BLAS_ROOT=/usr/lib/x86_64-linux-gnu/blas" >> ${GITHUB_ENV}
echo "HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial" >> ${GITHUB_ENV}
echo "HDF5_INC=/usr/lib/x86_64-linux-gnu/hdf5/serial/include" >> ${GITHUB_ENV}
echo "HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/serial/lib" >> ${GITHUB_ENV}
echo "LAPACK_DIR=/usr/lib/x86_64-linux-gnu/lapack" >> ${GITHUB_ENV}
echo "LAPACK_LIB=/usr/lib/x86_64-linux-gnu/lapack" >> ${GITHUB_ENV}
- name: Compile Drivers/Yahil Profile - XCFC - Native
timeout-minutes: 2
run: |
cd ${POSEIDON_ACTIVE_DIR}/Drivers/Yahil\ Profile\ -\ XCFC\ -\ Native/
make main
make run
make clean
- name: Compile Drivers/Yahil Profile - XCFC - AMReX
timeout-minutes: 8
if: ${{ !cancelled() }}
run: |
cd ${POSEIDON_ACTIVE_DIR}/Drivers/Yahil\ Profile\ -\ XCFC\ -\ AMReX/
make
ls
mpiexec -n 1 ./Yahil_XCFC_AMReX1d.gnu.DEBUG.MPI.ex inputs_Poseidon_CI
make clean