packaging.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: Packaging 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. build_wolfssl:
  14. name: Package wolfSSL
  15. runs-on: ubuntu-latest
  16. # This should be a safe limit for the tests to run.
  17. timeout-minutes: 10
  18. steps:
  19. - name: Checkout wolfSSL
  20. uses: actions/checkout@v4
  21. - name: Configure wolfSSL
  22. run: |
  23. autoreconf -ivf
  24. ./configure --enable-distro --enable-all \
  25. --disable-openssl-compatible-defaults --enable-intelasm \
  26. --enable-dtls13 --enable-dtls-mtu \
  27. --enable-sp-asm --disable-examples --disable-silent-rules
  28. - name: Make sure OPENSSL_COMPATIBLE_DEFAULTS is not present in options.h
  29. run: |
  30. ! grep OPENSSL_COMPATIBLE_DEFAULTS wolfssl/options.h
  31. - name: Build wolfSSL .deb
  32. run: make deb-docker
  33. # disabled 20240919 -- broken target.
  34. # - name: Build wolfSSL .rpm
  35. # run: make rpm-docker
  36. - name: Confirm packages built
  37. run: |
  38. DEB_COUNT=$(find -name 'libwolfssl*.deb' | wc -l)
  39. if [ "$DEB_COUNT" != "2" ]; then
  40. echo Did not find exactly two deb packages!!!
  41. exit 1
  42. fi
  43. # disabled 20240919 -- broken target.
  44. # RPM_COUNT=$(find -name 'wolfssl*.rpm' | wc -l)
  45. # if [ "$RPM_COUNT" != "4" ]; then
  46. # echo Did not find exactly four rpm packages!!!
  47. # exit 1
  48. # fi