Skip to content

Commit ceb8ac0

Browse files
authored
Merge pull request #288 from padelsbach/wp-simplify-simple-yml
Reduce test case permutations in simple.yml
2 parents d927422 + 80e3737 commit ceb8ac0

File tree

1 file changed

+4
-52
lines changed

1 file changed

+4
-52
lines changed

.github/workflows/simple.yml

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,15 @@ concurrency:
1313
# END OF COMMON SECTION
1414

1515
jobs:
16-
build_wolfprovider:
17-
uses: ./.github/workflows/build-wolfprovider.yml
18-
with:
19-
wolfssl_ref: ${{ matrix.wolfssl_ref }}
20-
openssl_ref: ${{ matrix.openssl_ref }}
21-
strategy:
22-
matrix:
23-
wolfssl_ref: [
24-
'master',
25-
'v5.8.2-stable',
26-
'v5.8.0-stable']
27-
# Test against the newest of each minor version
28-
openssl_ref: [
29-
'openssl-3.5.2',
30-
'openssl-3.4.2',
31-
'openssl-3.3.4',
32-
'openssl-3.2.5',
33-
'openssl-3.1.8',
34-
'openssl-3.0.17']
35-
force_fail: ['WOLFPROV_FORCE_FAIL=1', '']
36-
debug: ['WOLFPROV_DEBUG=1', '']
37-
3816
simple_test:
3917
name: Simple Test
4018
runs-on: ubuntu-22.04
41-
needs: build_wolfprovider
4219
timeout-minutes: 20
4320
strategy:
4421
matrix:
4522
wolfssl_ref: [
4623
'master',
47-
'v5.8.2-stable',
48-
'v5.8.0-stable']
24+
'v5.8.2-stable']
4925
# Test against the newest of each minor version
5026
openssl_ref: [
5127
'openssl-3.5.2',
@@ -54,41 +30,17 @@ jobs:
5430
'openssl-3.2.5',
5531
'openssl-3.1.8',
5632
'openssl-3.0.17']
57-
force_fail: ['WOLFPROV_FORCE_FAIL=1', '']
58-
debug: ['WOLFPROV_DEBUG=1', '']
33+
debug: ['', 'WOLFPROV_DEBUG=1']
34+
5935
steps:
6036
- name: Checkout wolfProvider
6137
uses: actions/checkout@v4
6238
with:
6339
fetch-depth: 1
6440

65-
- name: Retrieving wolfProvider from cache
66-
# Debug builds are not currently supported by build-wolfprovider.yml
67-
# so those are manually built as a separate step.
68-
if: ${{ matrix.debug == '' }}
69-
uses: actions/cache/restore@v4
70-
id: wolfprov-cache-restore
71-
with:
72-
path: |
73-
wolfssl-install
74-
wolfprov-install
75-
openssl-install/lib64
76-
openssl-install/include
77-
openssl-install/bin
78-
79-
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
80-
# Normally we would fail on cache miss, but we rebuild below
81-
# for the DEBUG build.
82-
fail-on-cache-miss: false
83-
8441
- name: Build and test wolfProvider
85-
# Only run the test for a cache miss. On hit, we've already run the test.
86-
if: steps.wolfprov-cache-restore.cache-hit != 'true'
8742
run: |
88-
${{ matrix.debug }} \
89-
OPENSSL_TAG=${{ matrix.openssl_ref }} \
90-
WOLFSSL_TAG=${{ matrix.wolfssl_ref }} \
91-
./scripts/build-wolfprovider.sh
43+
OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ${{ matrix.debug }} ./scripts/build-wolfprovider.sh
9244
9345
- name: Print errors
9446
if: ${{ failure() }}

0 commit comments

Comments
 (0)