-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.27 KB
/
install_and_test.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
56
57
58
59
# This job installs AGNI and SOCRATES, and tests AGNI
# This occurs when a PR to main is created
name: AGNI_main_tests
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
install:
runs-on: ubuntu-latest
name: AGNI_main_tests
steps:
- uses: actions/checkout@v4
# Setup system
- name: NetCDF
run: |
sudo apt update
sudo apt-get install libnetcdff-dev netcdf-bin gfortran gcc
# Setup AGNI
- name: Setup Julia
uses: julia-actions/setup-julia@v2
with:
version: '1.10'
# Setup SOCRATES
- name: Get SOCRATES
uses: actions/checkout@v4
with:
repository: 'nichollsh/SOCRATES'
path: 'socrates'
- name: Build SOCRATES
run: |
export LD_LIBRARY_PATH=""
cd socrates
./configure
./build_code
source set_rad_env
cd ..
- name: Build AGNI
run: |
source socrates/set_rad_env
export LD_LIBRARY_PATH=""
julia --project=. -e 'using Pkg; Pkg.build()'
- name: Test AGNI
run: |
source socrates/set_rad_env
export LD_LIBRARY_PATH=""
./test/runtests.jl