diff --git a/.github/workflows/build-wolfprovider.yml b/.github/workflows/build-wolfprovider.yml new file mode 100644 index 00000000..2a077190 --- /dev/null +++ b/.github/workflows/build-wolfprovider.yml @@ -0,0 +1,67 @@ +name: Build wolfProvider + +on: + workflow_call: + inputs: + wolfssl_ref: + required: true + type: string + openssl_ref: + required: true + type: string + outputs: + cache_key: + description: "Cache key for the build artifacts" + value: ${{ jobs.build_wolfprovider.outputs.cache_key }} + +jobs: + build_wolfprovider: + name: Build wolfProvider + runs-on: ubuntu-22.04 + timeout-minutes: 20 + outputs: + cache_key: wolfprov-${{ inputs.wolfssl_ref }}-${{ github.sha }} + steps: + - name: Checkout wolfProvider + uses: actions/checkout@v4 + + # Check if this version of wolfssl/wolfprovider has already been built, + # mark to cache these items on post if we do end up building + - name: Checking wolfSSL/wolfProvider in cache + uses: actions/cache@v4 + id: wolfprov-cache + with: + path: | + wolfssl-source + wolfssl-install + wolfprov-install + provider.conf + + key: wolfprov-${{ inputs.wolfssl_ref }}-${{ github.sha }} + lookup-only: true + + # If wolfssl/wolfprovider have not yet been built, pull ossl from cache + - name: Checking OpenSSL in cache + if: steps.wolfprov-cache.outputs.cache-hit != 'true' + uses: actions/cache@v4 + id: openssl-cache + with: + path: | + openssl-source + openssl-install + + key: ossl-depends-${{ inputs.openssl_ref }}-${{ github.sha }} + lookup-only: true + + # If not yet built this version, build it now + - name: Build wolfProvider + if: steps.wolfprov-cache.outputs.cache-hit != 'true' + run: | + OPENSSL_TAG=${{ inputs.openssl_ref }} WOLFSSL_TAG=${{ inputs.wolfssl_ref }} ./scripts/build-wolfprovider.sh + + - name: Print errors + if: ${{ failure() }} + run: | + if [ -f test-suite.log ] ; then + cat test-suite.log + fi diff --git a/.github/workflows/curl.yml b/.github/workflows/curl.yml index 62417557..37cbd4ae 100644 --- a/.github/workflows/curl.yml +++ b/.github/workflows/curl.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_curl: runs-on: ubuntu-22.04 @@ -108,7 +65,7 @@ jobs: key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} fail-on-cache-miss: true - - name: Install curl test dependencies + - name: Install dependencies run: | sudo apt-get update sudo apt-get install nghttp2 libpsl5 libpsl-dev python3-impacket diff --git a/.github/workflows/grpc.yml b/.github/workflows/grpc.yml index 6346c22f..bdeb2490 100644 --- a/.github/workflows/grpc.yml +++ b/.github/workflows/grpc.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_grpc: runs-on: ubuntu-22.04 @@ -88,11 +45,6 @@ jobs: - name: Checkout wolfProvider uses: actions/checkout@v4 - - name: Confirm IPv4 and IPv6 support - run: | - ip addr list lo | grep 'inet ' - ip addr list lo | grep 'inet6 ' - - name: Retrieving OpenSSL from cache uses: actions/cache/restore@v4 id: openssl-cache @@ -117,6 +69,11 @@ jobs: key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} fail-on-cache-miss: true + - name: Confirm IPv4 and IPv6 support + run: | + ip addr list lo | grep 'inet ' + ip addr list lo | grep 'inet6 ' + - name: Install prerequisites run: | sudo apt-get update diff --git a/.github/workflows/ipmitool.yml b/.github/workflows/ipmitool.yml index b0a636e6..dd8d2358 100644 --- a/.github/workflows/ipmitool.yml +++ b/.github/workflows/ipmitool.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_ipmitool: runs-on: ubuntu-22.04 @@ -78,6 +35,9 @@ jobs: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] steps: + - name: Checkout wolfProvider + uses: actions/checkout@v4 + - name: Retrieving OpenSSL from cache uses: actions/cache/restore@v4 id: openssl-cache @@ -119,7 +79,7 @@ jobs: - name: Confirm built with OpenSSL and test with wolfProvider working-directory: ipmitool run: | - # Setup environment for wolfProvider + # Setup environment variables export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/wolfssl-install/lib:$GITHUB_WORKSPACE/openssl-install/lib64 export OPENSSL_CONF=$GITHUB_WORKSPACE/provider.conf export OPENSSL_MODULES=$GITHUB_WORKSPACE/wolfprov-install/lib diff --git a/.github/workflows/net-snmp.yml b/.github/workflows/net-snmp.yml index 0fafc7be..84c2765d 100644 --- a/.github/workflows/net-snmp.yml +++ b/.github/workflows/net-snmp.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_net_snmp: runs-on: ubuntu-22.04 diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index 1309c31f..f8cc666d 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_nginx: runs-on: ubuntu-22.04 @@ -108,7 +65,7 @@ jobs: key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} fail-on-cache-miss: true - - name: Install nginx dependencies + - name: Install dependencies run: | sudo cpan -iT Proc::Find Net::SSLeay IO::Socket::SSL diff --git a/.github/workflows/openldap.yml b/.github/workflows/openldap.yml index 9a766ee2..6a320b70 100644 --- a/.github/workflows/openldap.yml +++ b/.github/workflows/openldap.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-cache.outputs.cache-hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_openldap: runs-on: ubuntu-22.04 @@ -78,6 +35,9 @@ jobs: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] steps: + - name: Checkout wolfProvider + uses: actions/checkout@v4 + - name: Retrieving OpenSSL from cache uses: actions/cache/restore@v4 id: openssl-cache diff --git a/.github/workflows/openssh.yml b/.github/workflows/openssh.yml index 64f83f4a..06f7aab0 100644 --- a/.github/workflows/openssh.yml +++ b/.github/workflows/openssh.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_openssh: runs-on: ubuntu-22.04 diff --git a/.github/workflows/openvpn.yml b/.github/workflows/openvpn.yml index 00979483..83e4222a 100644 --- a/.github/workflows/openvpn.yml +++ b/.github/workflows/openvpn.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_openvpn: runs-on: ubuntu-22.04 diff --git a/.github/workflows/socat.yml b/.github/workflows/socat.yml index bce9ccd8..2c6960dc 100644 --- a/.github/workflows/socat.yml +++ b/.github/workflows/socat.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 20 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_socat: runs-on: ubuntu-22.04 @@ -76,6 +33,9 @@ jobs: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] steps: + - name: Checkout wolfProvider + uses: actions/checkout@v4 + - name: Retrieving OpenSSL from cache uses: actions/cache/restore@v4 id: openssl-cache @@ -100,7 +60,7 @@ jobs: key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} fail-on-cache-miss: true - - name: Install socat dependencies + - name: Install dependencies run: | sudo apt-get update sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev diff --git a/.github/workflows/stunnel.yml b/.github/workflows/stunnel.yml index 0ca41f9a..46c7b244 100644 --- a/.github/workflows/stunnel.yml +++ b/.github/workflows/stunnel.yml @@ -14,57 +14,14 @@ concurrency: jobs: build_wolfprovider: - name: Build wolfProvider - runs-on: ubuntu-22.04 - timeout-minutes: 10 + uses: ./.github/workflows/build-wolfprovider.yml + with: + wolfssl_ref: ${{ matrix.wolfssl_ref }} + openssl_ref: ${{ matrix.openssl_ref }} strategy: matrix: wolfssl_ref: [ 'master', 'v5.8.0-stable' ] openssl_ref: [ 'openssl-3.5.0' ] - steps: - - name: Checkout wolfProvider - uses: actions/checkout@v4 - - # Check if this version of wolfssl/wolfprovider has already been built, - # mark to cache these items on post if we do end up building - - name: Checking wolfSSL/wolfProvider in cache - uses: actions/cache@v4 - id: wolfprov-cache - with: - path: | - wolfssl-source - wolfssl-install - wolfprov-install - provider.conf - - key: wolfprov-${{ matrix.wolfssl_ref }}-${{ github.sha }} - lookup-only: true - - # If wolfssl/wolfprovider have not yet been built, pull ossl from cache - - name: Checking OpenSSL in cache - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - uses: actions/cache@v4 - id: openssl-cache - with: - path: | - openssl-source - openssl-install - - key: ossl-depends-${{ matrix.openssl_ref }}-${{ github.sha }} - lookup-only: true - - # If not yet built this version, build it now - - name: Build wolfProvider - if: steps.wolfprov-${{ matrix.wolfssl_ref }}-cache.hit != 'true' - run: | - OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh - - - name: Print errors - if: ${{ failure() }} - run: | - if [ -f test-suite.log ] ; then - cat test-suite.log - fi test_stunnel: runs-on: ubuntu-22.04