From 76ac4fa7e3d96e20f167ade88a93e3c8ec177e2c Mon Sep 17 00:00:00 2001 From: John Bland Date: Tue, 26 Mar 2024 05:58:59 -0400 Subject: [PATCH] add github workflow to test no malloc --- .github/workflows/no-malloc.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/no-malloc.yml diff --git a/.github/workflows/no-malloc.yml b/.github/workflows/no-malloc.yml new file mode 100644 index 000000000..dc1db23df --- /dev/null +++ b/.github/workflows/no-malloc.yml @@ -0,0 +1,33 @@ +name: No Malloc Tests + +on: + workflow_call: + +jobs: + make_check: + strategy: + matrix: + config: [ + # Add new configs here + '--enable-rsa --enable-keygen --disable-dh', + 'CFLAGS=-DWOLFSSL_NO_MALLOC', + ] + name: make check + runs-on: ubuntu-latest + # This should be a safe limit for the tests to run. + timeout-minutes: 6 + steps: + - uses: actions/checkout@v4 + name: Checkout wolfSSL + + - name: Test wolfSSL + run: | + ./configure ${{ matrix.config }} + make check + + - name: Print errors + if: ${{ failure() }} + run: | + if [ -f test-suite.log ] ; then + cat test-suite.log + fi