diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index c3e33e9d..bd07e239 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -28,7 +28,7 @@ jobs: strategy: fail-fast: true matrix: - config: ["asan/warning check", "docs/code coverage", "coverage"] + config: ["asan", "warnings", "docs", "coverage"] steps: @@ -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 @@ -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 @@ -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