Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 4 additions & 52 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,15 @@ concurrency:
# END OF COMMON SECTION

jobs:
build_wolfprovider:
uses: ./.github/workflows/build-wolfprovider.yml
with:
wolfssl_ref: ${{ matrix.wolfssl_ref }}
openssl_ref: ${{ matrix.openssl_ref }}
strategy:
matrix:
wolfssl_ref: [
'master',
'v5.8.2-stable',
'v5.8.0-stable']
# Test against the newest of each minor version
openssl_ref: [
'openssl-3.5.2',
'openssl-3.4.2',
'openssl-3.3.4',
'openssl-3.2.5',
'openssl-3.1.8',
'openssl-3.0.17']
force_fail: ['WOLFPROV_FORCE_FAIL=1', '']
debug: ['WOLFPROV_DEBUG=1', '']

simple_test:
name: Simple Test
runs-on: ubuntu-22.04
needs: build_wolfprovider
timeout-minutes: 20
strategy:
matrix:
wolfssl_ref: [
'master',
'v5.8.2-stable',
'v5.8.0-stable']
'v5.8.2-stable']
# Test against the newest of each minor version
openssl_ref: [
'openssl-3.5.2',
Expand All @@ -54,41 +30,17 @@ jobs:
'openssl-3.2.5',
'openssl-3.1.8',
'openssl-3.0.17']
force_fail: ['WOLFPROV_FORCE_FAIL=1', '']
debug: ['WOLFPROV_DEBUG=1', '']
debug: ['', 'WOLFPROV_DEBUG=1']

steps:
- name: Checkout wolfProvider
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Retrieving wolfProvider from cache
# Debug builds are not currently supported by build-wolfprovider.yml
# so those are manually built as a separate step.
if: ${{ matrix.debug == '' }}
uses: actions/cache/restore@v4
id: wolfprov-cache-restore
with:
path: |
wolfssl-install
wolfprov-install
openssl-install/lib64
openssl-install/include
openssl-install/bin

key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
# Normally we would fail on cache miss, but we rebuild below
# for the DEBUG build.
fail-on-cache-miss: false

- name: Build and test wolfProvider
# Only run the test for a cache miss. On hit, we've already run the test.
if: steps.wolfprov-cache-restore.cache-hit != 'true'
run: |
${{ matrix.debug }} \
OPENSSL_TAG=${{ matrix.openssl_ref }} \
WOLFSSL_TAG=${{ matrix.wolfssl_ref }} \
./scripts/build-wolfprovider.sh
OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ${{ matrix.debug }} ./scripts/build-wolfprovider.sh

- name: Print errors
if: ${{ failure() }}
Expand Down
Loading