2
0

socat.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. name: socat 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: Build wolfSSL
  15. runs-on: ubuntu-latest
  16. timeout-minutes: 4
  17. steps:
  18. - name: Build wolfSSL
  19. uses: wolfSSL/actions-build-autotools-project@v1
  20. with:
  21. path: wolfssl
  22. configure: --enable-maxfragment --enable-opensslall --enable-opensslextra --enable-dtls --enable-oldtls --enable-tlsv10 --enable-ipv6 'CPPFLAGS=-DWOLFSSL_NO_DTLS_SIZE_CHECK -DOPENSSL_COMPATIBLE_DEFAULTS'
  23. install: true
  24. - name: Upload built lib
  25. uses: actions/upload-artifact@v4
  26. with:
  27. name: wolf-install-socat
  28. path: build-dir
  29. retention-days: 3
  30. socat_check:
  31. strategy:
  32. fail-fast: false
  33. runs-on: ubuntu-latest
  34. # This should be a safe limit for the tests to run.
  35. timeout-minutes: 30
  36. needs: build_wolfssl
  37. steps:
  38. - name: Install prereqs
  39. run:
  40. sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev
  41. - name: Download lib
  42. uses: actions/download-artifact@v4
  43. with:
  44. name: wolf-install-socat
  45. path: build-dir
  46. - name: Download socat
  47. run: curl -O http://www.dest-unreach.org/socat/download/socat-1.8.0.0.tar.gz && tar xvf socat-1.8.0.0.tar.gz
  48. - name: Checkout OSP
  49. uses: actions/checkout@v4
  50. with:
  51. repository: wolfssl/osp
  52. path: osp
  53. - name: Build socat
  54. working-directory: ./socat-1.8.0.0
  55. run: |
  56. patch -p1 < ../osp/socat/1.8.0.0/socat-1.8.0.0.patch
  57. autoreconf -vfi
  58. ./configure --with-wolfssl=$GITHUB_WORKSPACE/build-dir
  59. make
  60. - name: Run socat tests
  61. working-directory: ./socat-1.8.0.0
  62. run: |
  63. export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/build-dir/lib:$LD_LIBRARY_PATH
  64. export SHELL=/bin/bash
  65. SOCAT=$GITHUB_WORKSPACE/socat-1.8.0.0/socat ./test.sh -t 0.5 --expect-fail 146,216,309,310,386,399,402,459,460,467,468,478,492,528,530