-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 851 Bytes
/
ci.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
name: Continuous Integration
on: push
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install libnetcdff-dev
- name: 'Configure #1'
run: ./configure --prefix=$(pwd)/install 'NETCDF_FCFLAGS=-I/usr/include' 'NETCDF_FCLIBS=-L/usr/lib/x86_64-linux-gnu -lnetcdff' || { cat ./config.log; exit 1; }
- name: 'Build #1'
run: make -j4
- name: Install
run: make -j4 install
- name: 'Run #1'
run: ./install/bin/main
- name: Distclean
run: make -j4 distclean
- name: 'Configure #2'
run: ./configure --disable-openmp --disable-delayed-config --disable-silent-rules || { cat ./config.log; exit 1; }
- name: 'Build #2'
run: make -j4
- name: 'Run #2'
run: ./main