Skip to content

Commit

Permalink
add recipe check action
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed May 21, 2024
1 parent 094fead commit 7061c5d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/Spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,9 @@ jobs:

steps:

- name: checkout-sfcio
uses: actions/checkout@v4
with:
path: sfcio

- name: recipe-check
run: |
echo "If this jobs fails, look at the most recently output CMake option below and make sure that option appears in spack/package.py"
for opt in $(grep -ioP '^option\(\K(?!(ENABLE_DOCS))[^ ]+' $GITHUB_WORKSPACE/sfcio/CMakeLists.txt) ; do
echo "Checking for presence of '$opt' CMake option in package.py"
grep -cP "define.+\b${opt}\b" $GITHUB_WORKSPACE/sfcio/spack/package.py
done
uses: NOAA-EMC/ci-check-spack-recipe@develop
with:
recipe-file: package/spack/package.py
cmakelists-txt: package/CMakeLists.txt
ignore-list: ENABLE_DOCS

0 comments on commit 7061c5d

Please sign in to comment.