no-malloc.yml 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: No Malloc Tests
  2. # START OF COMMON SECTION
  3. on:
  4. push:
  5. branches: [ 'master', 'main', 'release/**' ]
  6. pull_request:
  7. branches: [ '*' ]
  8. concurrency:
  9. group: ${{ github.workflow }}-${{ github.ref }}
  10. cancel-in-progress: true
  11. # END OF COMMON SECTION
  12. jobs:
  13. make_check:
  14. strategy:
  15. matrix:
  16. config: [
  17. # Add new configs here
  18. '--enable-rsa --enable-keygen --disable-dh CFLAGS="-DWOLFSSL_NO_MALLOC -DRSA_MIN_SIZE=1024"',
  19. ]
  20. name: make check
  21. runs-on: ubuntu-latest
  22. # This should be a safe limit for the tests to run.
  23. timeout-minutes: 6
  24. steps:
  25. - uses: actions/checkout@v4
  26. name: Checkout wolfSSL
  27. - name: Test wolfSSL
  28. run: |
  29. ./autogen.sh
  30. ./configure ${{ matrix.config }}
  31. make
  32. ./wolfcrypt/test/testwolfcrypt
  33. - name: Print errors
  34. if: ${{ failure() }}
  35. run: |
  36. if [ -f test-suite.log ] ; then
  37. cat test-suite.log
  38. fi