Tests for grid_ident.c, itoshort_a.c, and test_sec.c #1482
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
| # This is a CI workflow for the wgrib2 project. | |
| # | |
| # This workflow builds wgrib2 with Spack, including installing with the "--test | |
| # root" option to run the CTest suite. | |
| # | |
| # Alex Richert, Jun 2024 | |
| name: Spack | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| branches: | |
| - develop | |
| jobs: | |
| Spack: | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| variants: ["~ipolates", "+ipolates"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| # If spack tests are failing in CI after spack updates or dependency changes, | |
| # try clearing the cache by setting 'use-repo-cache' and 'cache-spack-lock' | |
| # to false. Then re-enable them after confirming the build works. | |
| - name: "Build Spack package" | |
| uses: NOAA-EMC/ci-test-spack-package@develop | |
| with: | |
| package-name: wgrib2 | |
| package-variants: ${{ matrix.variants }} | |
| custom-recipe: spack/package.py | |
| use-repo-cache: true | |
| spack-compiler: gcc | |
| use-common-build-cache: true | |
| cache-spack-lock: true | |
| repo-cache-key-suffix: ${{ matrix.os }}-${{ matrix.variants }}-2 | |
| recipe-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: recipe-check | |
| uses: NOAA-EMC/ci-check-spack-recipe@develop | |
| with: | |
| recipe-file: package/spack/package.py | |
| cmakelists-txt: package/CMakeLists.txt | |
| ignore-list: USE_HDF5,BUILD_WGRIB,FTP_TEST_FILES,FTP_LARGE_TEST_FILES,FTP_EXTRA_TEST_FILES,BUILD_EXTRA | |
| alternative-grep: true |