packaging.yml 1.6 KB

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