-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (43 loc) · 1.02 KB
/
Linux.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
# This is a CI workflow for the NCEPLIBS-sp project.
#
# This workflow builds on Linux with different build options.
#
# Ed Hartnett, 1/8/23
name: Linux
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
Linux:
runs-on: ubuntu-latest
env:
FC: gfortran-10
CC: gcc-10
strategy:
matrix:
openmp: [ON, OFF]
sharedlibs: [ON, OFF]
options: [-DBUILD_D=OFF, -DBUILD_4=OFF, -DBUILD_8=ON]
steps:
- name: checkout-sp
uses: actions/checkout@v2
with:
path: sp
- name: build-sp
run: |
cd sp
mkdir build
cd build
cmake -DOPENMP=${{ matrix.openmp }} -DBUILD_SHARED_LIBS=${{ matrix.sharedlibs }} ${{ matrix.options }} -DTEST_TIME_LIMIT=ON -DCMAKE_INSTALL_PREFIX="~/install" ..
make -j2 VERBOSE=1
make install
ls -l ~/install
ls -l ~/install/lib
- name: test-sp
run: |
cd sp/build
ctest --verbose --output-on-failure --rerun-failed