99 openssl_ref :
1010 required : true
1111 type : string
12+ replace_default :
13+ required : false
14+ type : boolean
15+ default : false
16+ description : " Build with --replace-default flag"
1217 outputs :
1318 cache_key :
1419 description : " Cache key for the build artifacts"
2429 DEBIAN_FRONTEND : noninteractive
2530 timeout-minutes : 20
2631 outputs :
27- cache_key : wolfprov-${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}
32+ cache_key : wolfprov${{ inputs.replace_default && '-replace-default' || '' }} -${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}
2833 steps :
2934 - name : Install dependencies
3035 run : |
6267 with :
6368 path : |
6469 openssl-install
65- key : ossl-depends-${{ steps.openssl-ref.outputs.ref }}
70+ ${{ inputs.replace_default && 'libdefault-stub-install' || '' }}
71+ key : ossl${{ inputs.replace_default && '-replace-default' || '' }}-depends-${{ steps.openssl-ref.outputs.ref }}
6672 lookup-only : false
6773
6874 # Look for a cached version of WolfSSL
7783
7884 - name : Build wolfProvider
7985 run : |
80- OPENSSL_TAG=${{ inputs.openssl_ref }} WOLFSSL_TAG=${{ inputs.wolfssl_ref }} ./scripts/build-wolfprovider.sh
86+ OPENSSL_TAG=${{ inputs.openssl_ref }} WOLFSSL_TAG=${{ inputs.wolfssl_ref }} ./scripts/build-wolfprovider.sh ${{ inputs.replace_default && '--replace-default' || '' }}
8187
8288 # Save the wolfProvider outputs for use by the parent jobs.
8389 # Note that we don't try to restore since it will likely always
9197 openssl-install/lib64
9298 openssl-install/include
9399 openssl-install/bin
94- key : wolfprov-${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}
100+ ${{ inputs.replace_default && 'libdefault-stub-install' || '' }}
101+ key : wolfprov${{ inputs.replace_default && '-replace-default' || '' }}-${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}
95102
96103 # If openssl cache miss, save it to the cache
97104 - name : Save OpenSSL into cache
@@ -100,7 +107,8 @@ jobs:
100107 with :
101108 path : |
102109 openssl-install
103- key : ossl-depends-${{ steps.openssl-ref.outputs.ref }}
110+ ${{ inputs.replace_default && 'libdefault-stub-install' || '' }}
111+ key : ossl${{ inputs.replace_default && '-replace-default' || '' }}-depends-${{ steps.openssl-ref.outputs.ref }}
104112
105113 - name : Save WolfSSL into cache
106114 if : steps.wolfssl-cache.outputs.cache-hit != 'true'
0 commit comments