packaging.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: Packaging Tests
  2. on:
  3. workflow_call:
  4. jobs:
  5. build_wolfssl:
  6. name: Package wolfSSL
  7. runs-on: ubuntu-latest
  8. # This should be a safe limit for the tests to run.
  9. timeout-minutes: 10
  10. steps:
  11. - name: Checkout wolfSSL
  12. uses: actions/checkout@v3
  13. - name: Configure wolfSSL
  14. run: |
  15. autoreconf -ivf
  16. ./configure --enable-distro --enable-all \
  17. --disable-openssl-compatible-defaults --enable-intelasm \
  18. --enable-dtls13 --enable-dtls-mtu \
  19. --enable-sp-asm --disable-examples --disable-silent-rules
  20. - name: Make sure OPENSSL_COMPATIBLE_DEFAULTS is not present in options.h
  21. run: |
  22. ! grep OPENSSL_COMPATIBLE_DEFAULTS wolfssl/options.h
  23. - name: Build wolfSSL .deb
  24. run: make deb-docker
  25. - name: Build wolfSSL .rpm
  26. run: make rpm-docker
  27. - name: Confirm packages built
  28. run: |
  29. DEB_COUNT=$(find -name 'libwolfssl*.deb' | wc -l)
  30. if [ "$DEB_COUNT" != "2" ]; then
  31. echo Did not find exactly two deb packages!!!
  32. exit 1
  33. fi
  34. RPM_COUNT=$(find -name 'wolfssl*.rpm' | wc -l)
  35. if [ "$RPM_COUNT" != "4" ]; then
  36. echo Did not find exactly four rpm packages!!!
  37. exit 1
  38. fi