-
Notifications
You must be signed in to change notification settings - Fork 14
81 lines (72 loc) · 2.18 KB
/
Linux_options.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# This is the Linux_options workflow for the wgrib2 project. This
# tests different wgrib2 build options.
#
# Ed Hartnett, 3/27/24
name: Linux_options
on:
push:
branches:
- develop
pull_request:
branches:
- develop
# Cancel in-progress workflows when pushing to a branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Linux_options:
runs-on: ubuntu-24.04
strategy:
# fail-fast: true
matrix:
config:
- {
options: "-DUSE_IPOLATES=ON -DBLA_VENDOR=OpenBLAS"
}
- {
options: "-DUSE_AEC=ON"
}
- {
options: "-DUSE_NETCDF=ON"
}
- {
options: "-DBUILD_WGRIB=ON"
}
- {
options: "-DUSE_OPENJPEG=ON"
}
gcc-version: [12]
include:
- gcc-version: 14
steps:
- name: install
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config \
libpng-dev autotools-dev autoconf libaec-dev libopenblas-serial-dev \
libopenjp2-7 libopenjp2-7-dev
if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then
sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
fi
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "FC=gfortran-${{ matrix.gcc-version }}" >> $GITHUB_ENV
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
ip-version: develop
g2c-version: develop
g2c-cmake-args: -DUSE_OpenJPEG=ON -DUSE_Jasper=OFF
- name: checkout
uses: actions/checkout@v2
with:
path: wgrib2
- name: build
run: |
cd wgrib2
mkdir b
cd b
export CFLAGS='-I/home/runner/work/wgrib2/wgrib2/nceplibs/NCEPLIBS-g2c/include'
cmake ${{ matrix.config.options }} -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-ip;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-g2c" ..
make VERBOSE=1
ctest --verbose --output-on-failure --rerun-failed