forked from NOAA-EMC/wgrib2
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.12 KB
/
Spack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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:
- 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
spack-compiler: gcc
repo-cache-key-suffix: ${{ matrix.os }}-${{ matrix.variants }}-1
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
alternative-grep: true