mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 21:50:49 +02:00
08aac33a7d
The test jobs used actions/cache/restore with fail-on-cache-miss, which aborted when the cache key was scoped to another PR or had been evicted, even though the build job reported success. Drop fail-on-cache-miss and add a fallback rebuild in the test job, gated on the cache-hit output. Fast path is unchanged; on miss the test job rebuilds locally and proceeds.
122 lines
3.1 KiB
YAML
122 lines
3.1 KiB
YAML
name: nss interop Tests
|
|
|
|
### TODO uncomment stuff
|
|
|
|
# START OF COMMON SECTION
|
|
on:
|
|
push:
|
|
branches: [ 'master', 'main', 'release/**' ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
# END OF COMMON SECTION
|
|
|
|
env:
|
|
NSS_REF: NSS_3_107_RTM
|
|
|
|
jobs:
|
|
build_nss:
|
|
name: Build nss
|
|
if: github.repository_owner == 'wolfssl'
|
|
runs-on: ubuntu-24.04
|
|
# This should be a safe limit for the tests to run.
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout wolfSSL CI actions
|
|
uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
fetch-depth: 1
|
|
|
|
- name: Checking if we have nss in cache
|
|
uses: actions/cache@v4
|
|
id: cache
|
|
with:
|
|
path: dist
|
|
key: nss-${{ env.NSS_REF }}
|
|
lookup-only: true
|
|
|
|
- name: Install dependencies
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
uses: ./.github/actions/install-apt-deps
|
|
with:
|
|
packages: gyp ninja-build
|
|
|
|
- name: Checkout nss
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: nss-dev/nss
|
|
ref: ${{ env.NSS_REF }}
|
|
path: nss
|
|
fetch-depth: 1
|
|
|
|
- name: Compile nss
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
run: |
|
|
hg clone https://hg.mozilla.org/projects/nspr
|
|
cd nss
|
|
./build.sh
|
|
|
|
nss_test:
|
|
name: Test interop with nss
|
|
if: github.repository_owner == 'wolfssl'
|
|
runs-on: ubuntu-24.04
|
|
needs: build_nss
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checking if we have nss in cache
|
|
uses: actions/cache@v4
|
|
id: cache
|
|
with:
|
|
path: dist
|
|
key: nss-${{ env.NSS_REF }}
|
|
|
|
- name: Checkout wolfSSL CI actions (fallback on cache miss)
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: .github/actions
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies (fallback on cache miss)
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
uses: ./.github/actions/install-apt-deps
|
|
with:
|
|
packages: gyp ninja-build
|
|
|
|
- name: Checkout nss (fallback on cache miss)
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: nss-dev/nss
|
|
ref: ${{ env.NSS_REF }}
|
|
path: nss
|
|
fetch-depth: 1
|
|
|
|
- name: Compile nss (fallback on cache miss)
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
run: |
|
|
hg clone https://hg.mozilla.org/projects/nspr
|
|
cd nss
|
|
./build.sh
|
|
|
|
- name: Build wolfSSL
|
|
uses: wolfSSL/actions-build-autotools-project@v1
|
|
with:
|
|
path: wolfssl
|
|
configure: --enable-dtls --enable-dtls13
|
|
install: false
|
|
check: false
|
|
|
|
- name: Test interop
|
|
run: bash wolfssl/.github/workflows/nss.sh
|
|
|
|
- name: print server logs
|
|
if: ${{ failure() }}
|
|
run: |
|
|
cat /tmp/server.log
|