-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (38 loc) · 1.19 KB
/
github-actions-demo.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
name: DIVA compilation
on: [push]
jobs:
Compilation:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository universe
sudo apt-get install -y wget make gfortran netcdf-bin libnetcdf-dev libnetcdff-dev
- name: Download DIVA
env:
DIVA_VERSION: 4.7.2
TOOLSDIR: "/tmp/tools/"
run: |
echo "Installing DIVA software"
mkdir -pv ${TOOLSDIR}
cd ${TOOLSDIR}
wget -q "https://github.com/gher-uliege/DIVA/archive/refs/tags/v${DIVA_VERSION}.tar.gz"
tar xvf "v${DIVA_VERSION}.tar.gz"
- name: Compilation
env:
DIVA_VERSION: 4.7.2
TOOLSDIR: "/tmp/tools/"
run: |
cd ${TOOLSDIR}/DIVA-${DIVA_VERSION}/DIVA3D/src/Fortran/
make
- name: Test code
env:
DIVA_VERSION: 4.7.2
TOOLSDIR: "/tmp/tools/"
run: |
export PATH=.:${PATH}
echo "This is the PATH variable: ${PATH}"
cd ${TOOLSDIR}/DIVA-${DIVA_VERSION}/DIVA3D/divastripped/
./divatest0