Skip to content

Commit

Permalink
separating asan build from warnings in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Dec 31, 2024
1 parent 657ca2a commit 934d815
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: true
matrix:
config: ["asan/warning check", "docs/code coverage", "coverage"]
config: ["asan", "warnings", "docs", "coverage"]

steps:

Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
key: data-developer-5

- name: asan
if: matrix.config == 'asan/warning check'
if: matrix.config == 'asan'
run: |
set -x
cd g2
Expand All @@ -71,15 +71,26 @@ jobs:
make -j2 VERBOSE=1
ctest --verbose --output-on-failure --rerun-failed
- name: warnings
if: matrix.config == 'warnings'
run: |
set -x
cd g2
mkdir build
cd build
cmake -DUSE_G2C_API=ON -DBUILD_UTILS=OFF -DUSE_AEC=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 -DCMAKE_C_FLAGS="-g -O0 -Wall" -DCMAKE_BUILD_TYPE=Debug ..
make -j2 VERBOSE=1
ctest --verbose --output-on-failure --rerun-failed
- name: docs
if: matrix.config == 'docs/code coverage'
if: matrix.config == 'docs'
run: |
set -x
cd g2
mkdir build
doxygen --version
cd build
cmake -DUSE_G2C_API=ON -DBUILD_UTILS=ON -DUSE_AEC=ON -DFTP_LARGE_TEST_FILES=ON -DENABLE_DOCS=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 -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0" -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data ..
cmake -DBUILD_UTILS=ON -DENABLE_DOCS=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" ..
make -j2 VERBOSE=1
- name: code_coverage
Expand All @@ -102,7 +113,7 @@ jobs:
cp $GITHUB_WORKSPACE/g2/build/tests/data/* ~/data
- name: upload-test-coverage
if: matrix.config == 'docs/code coverage'
if: matrix.config == 'coverage'
uses: actions/upload-artifact@v4
with:
name: g2-test-coverage
Expand Down

0 comments on commit 934d815

Please sign in to comment.