Skip to content

Commit

Permalink
Attempt to skip test if NSS is too old
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Aug 27, 2024
1 parent 63bb46e commit 6e38a57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,24 @@ jobs:
p11-kit-modules
fi
fi
- name: Check NSS version
id: nss-version-check
run: |
if [ "${{ matrix.token }}" = "softokn" ]; then
NSSMINVER=`nss-config --version nss | cut -d '.' -f 2`
if [ $NSSMINVER -lt 101 ]; then
echo "skiptest=true" >> $GITHUB_OUTPUT
fi
fi
- name: Checkout Repository
if : ( steps.nss-version-check.outputs.skiptest != 'true' )
uses: actions/checkout@v4
- name: Setup
if : ( steps.nss-version-check.outputs.skiptest != 'true' )
run: |
CC=${{ matrix.compiler }} meson setup builddir
- name: Build and Test
if : ( steps.nss-version-check.outputs.skiptest != 'true' )
run: |
meson compile -C builddir
meson test --num-processes 1 -C builddir
Expand Down

0 comments on commit 6e38a57

Please sign in to comment.