packaging.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. - name: Build wolfSSL .rpm
  34. run: make rpm-docker
  35. - name: Confirm packages built
  36. run: |
  37. DEB_COUNT=$(find -name 'libwolfssl*.deb' | wc -l)
  38. if [ "$DEB_COUNT" != "2" ]; then
  39. echo Did not find exactly two deb packages!!!
  40. exit 1
  41. fi
  42. RPM_COUNT=$(find -name 'wolfssl*.rpm' | wc -l)
  43. if [ "$RPM_COUNT" != "4" ]; then
  44. echo Did not find exactly four rpm packages!!!
  45. exit 1
  46. fi