diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23724707..9fe753fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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