@@ -14,57 +14,14 @@ concurrency:
1414
1515jobs :
1616 build_wolfprovider :
17- name : Build wolfProvider
18- runs-on : ubuntu-22.04
19- timeout-minutes : 20
17+ uses : ./.github/workflows/build-wolfprovider.yml
18+ with :
19+ wolfssl_ref : ${{ matrix.wolfssl_ref }}
20+ openssl_ref : ${{ matrix.openssl_ref }}
2021 strategy :
2122 matrix :
2223 wolfssl_ref : [ 'master', 'v5.8.0-stable' ]
2324 openssl_ref : [ 'openssl-3.5.0' ]
24- steps :
25- - name : Checkout wolfProvider
26- uses : actions/checkout@v4
27-
28- # Check if this version of wolfssl/wolfprovider has already been built,
29- # mark to cache these items on post if we do end up building
30- - name : Checking wolfSSL/wolfProvider in cache
31- uses : actions/cache@v4
32- id : wolfprov-cache
33- with :
34- path : |
35- wolfssl-source
36- wolfssl-install
37- wolfprov-install
38- provider.conf
39-
40- key : wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }}
41- lookup-only : true
42-
43- # If wolfssl/wolfprovider have not yet been built, pull ossl from cache
44- - name : Checking OpenSSL in cache
45- if : steps.wolfprov-cache.outputs.cache-hit != 'true'
46- uses : actions/cache@v4
47- id : openssl-cache
48- with :
49- path : |
50- openssl-source
51- openssl-install
52-
53- key : ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }}
54- lookup-only : true
55-
56- # If not yet built this version, build it now
57- - name : Build wolfProvider
58- if : steps.wolfprov-cache.outputs.cache-hit != 'true'
59- run : |
60- OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh
61-
62- - name : Print errors
63- if : ${{ failure() }}
64- run : |
65- if [ -f test-suite.log ] ; then
66- cat test-suite.log
67- fi
6825
6926 test_ipmitool :
7027 runs-on : ubuntu-22.04
7835 wolfssl_ref : [ 'master', 'v5.8.0-stable' ]
7936 openssl_ref : [ 'openssl-3.5.0' ]
8037 steps :
38+ - name : Checkout wolfProvider
39+ uses : actions/checkout@v4
40+
8141 - name : Retrieving OpenSSL from cache
8242 uses : actions/cache/restore@v4
8343 id : openssl-cache
11979 - name : Confirm built with OpenSSL and test with wolfProvider
12080 working-directory : ipmitool
12181 run : |
122- # Setup environment for wolfProvider
82+ # Setup environment variables
12383 export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/wolfssl-install/lib:$GITHUB_WORKSPACE/openssl-install/lib64
12484 export OPENSSL_CONF=$GITHUB_WORKSPACE/provider.conf
12585 export OPENSSL_MODULES=$GITHUB_WORKSPACE/wolfprov-install/lib
0 commit comments