Add diag manager test to register var with different axis permutations #1712
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake build and unit testing with GCC | |
| on: [push, pull_request] | |
| # cancel running jobs if theres a newer push | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| libyaml-flag: [ "", -DWITH_YAML=on ] | |
| build-type: [ "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_BUILD_TYPE=Debug" ] | |
| container: | |
| image: ghcr.io/noaa-gfdl/fms/fms-ci-rocky-gnu:15.1.0 | |
| env: | |
| CMAKE_FLAGS: "${{ matrix.build-type }} ${{ matrix.libyaml-flag }}" | |
| EXCLUDE_TESTS: "test_mpp_nesting|test_mpp_clock_begin_end_id|test_time_*" | |
| PKG_CONFIG_PATH: "/opt/views/view/lib64/pkgconfig:/opt/views/view/lib/pkgconfig:/opt/views/view/share/pkgconfig" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6.0.1 | |
| - name: Generate makefiles with CMake | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake -DOVERSUBSCRIBE_FLAG="--map-by :OVERSUBSCRIBE" $CMAKE_FLAGS -DOPENMP=on -DNetCDF_ROOT=/opt/view -DLIBYAML_ROOT=/opt/view -DUNIT_TESTS=on .. | |
| - name: Build the library | |
| run: make -C build | |
| - name: Run the unit tests | |
| run: cd build && ctest -E "${EXCLUDE_TESTS}" --output-on-failure | |
| build_arm: | |
| runs-on: ubuntu-24.04-arm | |
| strategy: | |
| matrix: | |
| libyaml-flag: [ "", -DWITH_YAML=on ] | |
| build-type: [ "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_BUILD_TYPE=Debug" ] | |
| container: | |
| image: ghcr.io/noaa-gfdl/fms/fms-ci-rocky-gnu:13.2.0-arm-cmake-update | |
| env: | |
| CMAKE_FLAGS: "${{ matrix.build-type }} ${{ matrix.libyaml-flag }}" | |
| EXCLUDE_TESTS: "test_mpp_nesting|test_sat_vapor_pres|test_mpp_clock_begin_end_id" | |
| PKG_CONFIG_PATH: "/opt/views/view/lib64/pkgconfig:/opt/views/view/lib/pkgconfig:/opt/views/view/share/pkgconfig" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4.2.2 | |
| - name: Generate makefiles with CMake | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake $CMAKE_FLAGS -DOVERSUBSCRIBE_FLAG="" -DOPENMP=on -DUNIT_TESTS=on -DNetCDF_ROOT=/opt/view -DLIBYAML_ROOT=/opt/view .. | |
| - name: Build the library | |
| run: make -C build | |
| - name: Run the unit tests | |
| run: cd build && ctest -E "${EXCLUDE_TESTS}" --output-on-failure |