add github workflow to test no malloc

This commit is contained in:
John Bland 2024-03-26 05:58:59 -04:00
parent 9cd614fcac
commit 76ac4fa7e3

33
.github/workflows/no-malloc.yml vendored Normal file
View File

@ -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