Skip to content

make openmp and lapack link libs targets private #236

make openmp and lapack link libs targets private

make openmp and lapack link libs targets private #236

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
# Cancel in-progress workflows when pushing to a branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# This job builds with Spack using every combination of variants and runs the CTest suite each time
Spack:
permissions:
packages: read
strategy:
matrix:
config:
- {
os: "ubuntu-24.04",
variants: "precision=d +openmp +shared +pic",
cache-key: "A",
extrapkgs: "grib-util@develop +tests ^g2c@develop +utils +build_v2_api ^g2@3.5:",
}
- {
os: "ubuntu-24.04",
variants: "precision=4 +openmp ~shared ~pic",
cache-key: "B",
}
- {
os: "ubuntu-24.04",
variants: "precision=8 ~openmp ~shared +pic",
cache-key: "C",
}
runs-on: ${{ matrix.config.os }}
steps:
- name: "Build Spack package"
uses: NOAA-EMC/ci-test-spack-package@develop
with:
package-name: ip
package-variants: ${{ matrix.config.variants }} ${{ matrix.config.extrapkgs }}
custom-recipe: spack/package.py
spack-compiler: gcc
repo-cache-key-suffix: ${{ matrix.config.cache-key }}
# 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,TEST_FILES_CACHE