Skip to content

CI updates

CI updates #159

Workflow file for this run

# This is a CI workflow for the NCEPLIBS-ip project.
#
# This workflow builds ip with Spack, including installing with the "--test
# root" option to run the CTest suite. It also has a one-off job that validates
# the recipe by ensuring that every CMake option that should be set in the
# Spack recipe is so set.
#
# Alex Richert, Sep 2023
name: Spack
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
# This job builds with Spack using every combination of variants and runs the CTest suite each time
Spack:
strategy:
matrix:
os: ["ubuntu-latest"]
variants: ["+openmp +shared +pic precision=d", "+openmp ~shared ~pic precision=4", "~openmp ~shared +pic precision=8"]
runs-on: ${{ matrix.os }}
steps:
- name: "Build Spack package"
uses: NOAA-EMC/ci-test-spack-package@develop
with:
package-name: ip
package-variants: ${{ matrix.variants }} target=x86_64 ${{ matrix.variants == "+openmp +shared +pic precision=d" && 'grib-util@develop' || '' }}

Check failure on line 33 in .github/workflows/Spack.yml

View workflow run for this annotation

GitHub Actions / Spack

Invalid workflow file

The workflow is not valid. .github/workflows/Spack.yml (Line: 33, Col: 27): Unexpected symbol: '"+openmp'. Located at position 20 within expression: matrix.variants == "+openmp +shared +pic precision=d" && 'grib-util@develop' || ''
custom-recipe: spack/package.py
spack-compiler: gcc
spack-externals: gmake cmake openblas
repo-cache-key-suffix: ${{ matrix.os }}-${{ matrix.variants }}-1
# This job validates the Spack recipe by making sure each cmake build option is represented
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: ENABLE_DOCS,TEST_TIME_LIMIT