Skip to content

Commit 16ced96

Browse files
added warning check workflow (#803)
* added warning check workflow * added warning check workflow * added warning check workflow * added warning check workflow
1 parent 88c3b70 commit 16ced96

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/warnings.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This is a GitHub actions workflow for NCEPLIBS-g2.
2+
#
3+
# This builds the develop branch with warning check.
4+
#
5+
# Ed Hartnett, 1/20/25
6+
name: warning
7+
on:
8+
push:
9+
branches:
10+
- develop
11+
pull_request:
12+
branches:
13+
- develop
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
warning:
21+
runs-on: ubuntu-latest
22+
env:
23+
FC: gfortran
24+
CC: gcc
25+
LD_LIBRARY_PATH: /home/runner/work/NCEPLIBS-g2/NCEPLIBS-g2/nceplibs/jasper/lib/
26+
27+
strategy:
28+
fail-fast: true
29+
30+
steps:
31+
32+
- name: install-dependencies
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libaec-dev libblas-dev liblapack-dev
36+
37+
- name: "Build dependencies"
38+
uses: NOAA-EMC/ci-build-nceplibs@develop
39+
with:
40+
bacio-version: develop
41+
w3emc-version: develop
42+
jasper-version: version-4.0.0
43+
w3emc-cmake-args: -DBUILD_WITH_BUFR=OFF
44+
ip-version: develop
45+
g2c-version: develop
46+
g2c-cmake-args: -DBUILD_G2C=ON -DUSE_AEC=ON
47+
48+
- name: checkout
49+
uses: actions/checkout@v4
50+
with:
51+
path: g2
52+
53+
- name: warning_check
54+
run: |
55+
set -x
56+
cd g2
57+
mkdir build
58+
cd build
59+
cmake -DUSE_G2C_API=ON -DBUILD_UTILS=OFF -DUSE_AEC=ON -DFTP_LARGE_TEST_FILES=ON -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/jasper;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-bacio;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-w3emc;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-ip;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-g2c" -DCMAKE_Fortran_FLAGS="-g -O0 -Wall -Werror" -DCMAKE_C_FLAGS="-g -O0 -Wall -Werror" -DCMAKE_BUILD_TYPE=Debug ..
60+
make -j2 VERBOSE=1
61+
ctest --verbose --output-on-failure --rerun-failed

0 commit comments

Comments
 (0)