|
| 1 | +name: WolfSSL |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "0 0 * * 4" |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +jobs: |
| 12 | + test: |
| 13 | + runs-on: ubuntu-latest |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + - name: Install VTest |
| 17 | + run: | |
| 18 | + scripts/build-vtest.sh |
| 19 | + - name: Determine latest WolfSSL release |
| 20 | + id: get_wolfssl_release |
| 21 | + run: | |
| 22 | + result=$(cd .github && python3 -c "from matrix import determine_latest_wolfssl; print(determine_latest_wolfssl(''))") |
| 23 | + echo $result |
| 24 | + echo "result=$result" >> $GITHUB_OUTPUT |
| 25 | + - name: Cache WolfSSL |
| 26 | + id: cache_wolfssl |
| 27 | + uses: actions/cache@v4 |
| 28 | + with: |
| 29 | + path: '~/opt/' |
| 30 | + key: ssl-${{ steps.get_wolfssl_release.outputs.result }}-Ubuntu-latest-gcc |
| 31 | + - name: Install WolfSSL |
| 32 | + if: ${{ steps.cache_ssl.outputs.cache-hit != 'true' }} |
| 33 | + run: env ${{ steps.get_wolfssl_release.outputs.result }} scripts/build-ssl.sh |
| 34 | + - name: Compile HAProxy |
| 35 | + run: | |
| 36 | + make -j$(nproc) ERR=1 CC=gcc TARGET=linux-glibc \ |
| 37 | + USE_OPENSSL_WOLFSSL=1 USE_QUIC=1 \ |
| 38 | + SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include \ |
| 39 | + DEBUG="-DDEBUG_POOL_INTEGRITY" \ |
| 40 | + ADDLIB="-Wl,-rpath,/usr/local/lib/ -Wl,-rpath,$HOME/opt/lib/" |
| 41 | + sudo make install |
| 42 | + - name: Show HAProxy version |
| 43 | + id: show-version |
| 44 | + run: | |
| 45 | + ldd $(which haproxy) |
| 46 | + haproxy -vv |
| 47 | + echo "version=$(haproxy -v |awk 'NR==1{print $3}')" >> $GITHUB_OUTPUT |
| 48 | + - name: Install problem matcher for VTest |
| 49 | + run: echo "::add-matcher::.github/vtest.json" |
| 50 | + - name: Run VTest for HAProxy |
| 51 | + id: vtest |
| 52 | + run: | |
| 53 | + # This is required for macOS which does not actually allow to increase |
| 54 | + # the '-n' soft limit to the hard limit, thus failing to run. |
| 55 | + ulimit -n 65536 |
| 56 | + make reg-tests VTEST_PROGRAM=../vtest/vtest REGTESTS_TYPES=default,bug,devel |
| 57 | + - name: Show VTest results |
| 58 | + if: ${{ failure() && steps.vtest.outcome == 'failure' }} |
| 59 | + run: | |
| 60 | + for folder in ${TMPDIR}/haregtests-*/vtc.*; do |
| 61 | + printf "::group::" |
| 62 | + cat $folder/INFO |
| 63 | + cat $folder/LOG |
| 64 | + echo "::endgroup::" |
| 65 | + done |
| 66 | + exit 1 |
0 commit comments