wolfssl.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright (C) 2000 - 2022 Daniel Stenberg, <daniel@haxx.se>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. name: Linux
  5. on:
  6. # Trigger the workflow on push or pull requests, but only for the
  7. # master branch
  8. push:
  9. branches:
  10. - master
  11. - '*/ci'
  12. pull_request:
  13. branches:
  14. - master
  15. jobs:
  16. autotools:
  17. name: ${{ matrix.build.name }}
  18. runs-on: 'ubuntu-latest'
  19. timeout-minutes: 60
  20. strategy:
  21. fail-fast: false
  22. matrix:
  23. build:
  24. - name: wolfssl (configured with --enable-all)
  25. install:
  26. configure: LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" --with-wolfssl=$HOME/wssl --enable-debug
  27. wolfssl-configure: --enable-all
  28. - name: wolfssl (configured with --enable-opensslextra)
  29. install:
  30. configure: LDFLAGS="-Wl,-rpath,$HOME/wssl/lib" --with-wolfssl=$HOME/wssl --enable-debug
  31. wolfssl-configure: --enable-opensslextra
  32. steps:
  33. - run: |
  34. sudo apt-get update
  35. sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
  36. sudo python3 -m pip install impacket
  37. name: 'install prereqs and impacket'
  38. - run: |
  39. curl -LO https://github.com/wolfSSL/wolfssl/archive/v5.0.0-stable.tar.gz
  40. tar -xzf v5.0.0-stable.tar.gz
  41. cd wolfssl-5.0.0-stable
  42. ./autogen.sh
  43. ./configure --enable-tls13 ${{ matrix.build.wolfssl-configure }} --enable-harden --prefix=$HOME/wssl
  44. make && make install
  45. name: 'install wolfssl'
  46. - uses: actions/checkout@v3
  47. - run: autoreconf -fi
  48. name: 'autoreconf'
  49. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
  50. name: 'configure'
  51. - run: make V=1
  52. name: 'make'
  53. - run: make V=1 examples
  54. name: 'make examples'
  55. - run: make V=1 test-ci
  56. name: 'test'
  57. env:
  58. TFLAGS: "${{ matrix.build.tflags }}"