Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 14, 2024
1 parent bbcaaf5 commit 30b5f3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/nss/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ runs:
shell: bash
run: |
if ! command -v pkg-config &> /dev/null; then
echo "BUILD_NSS=1" >> "$GITHUB_ENV
echo "BUILD_NSS=1" >> "$GITHUB_ENV"
exit 0
fi
NSS_VERSION=$(pkg-config --modversion nss)
NSS_MAJOR=$(echo $NSS_VERSION | cut -d. -f1)
NSS_MINOR=$(echo $NSS_VERSION | cut -d. -f2)
# Keep this in sync with what the code requires
if [ $NSS_MAJOR -ne 3 ] || [ $NSS_MINOR -lt 98 ]; then
echo "System NSS is too old: $NSS_VERSION"
echo "BUILD_NSS=1" >> "$GITHUB_ENV
echo "BUILD_NSS=1" >> "$GITHUB_ENV"
else
echo "System NSS is suitable: $NSS_VERSION"
echo "BUILD_NSS=0" >> "$GITHUB_ENV
echo "BUILD_NSS=0" >> "$GITHUB_ENV"
fi
# Ideally, we'd use this. But things are sufficiently flaky that we're better off
Expand Down

0 comments on commit 30b5f3b

Please sign in to comment.