forked from NOAA-EMC/UPP
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (52 loc) · 1.39 KB
/
build_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
60
61
62
63
64
65
name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
env:
FC: gfortran-9
CC: gcc-9
steps:
- name: install-dependencies
run: |
sudo apt-get update
sudo apt-get install libmpich-dev
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config
sudo apt-get install libpng-dev
sudo apt-get install libjpeg-dev
sudo apt-get install doxygen
- name: checkout-jasper
uses: actions/checkout@v2
with:
repository: jasper-software/jasper
path: jasper
ref: version-2.0.22
- name: build-jasper
run: |
cd jasper
mkdir build-jasper && cd build-jasper
cmake .. -DCMAKE_INSTALL_PREFIX=~
make -j2
make install
- name: checkout-nceplibs
uses: actions/checkout@v2
with:
repository: NOAA-EMC/NCEPLIBS
path: nceplibs
ref: v1.2.0
- name: build-nceplibs
run: |
cd nceplibs
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~ -DFLAT=ON -DBUILD_POST=OFF
make -j2
- name: checkout-post
uses: actions/checkout@v2
with:
path: post
- name: build-post
run: |
cd post
mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH=~ -DENABLE_DOCS=ON
make -j2