torture.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: 90
  20. strategy:
  21. fail-fast: false
  22. matrix:
  23. build:
  24. - name: torture
  25. install:
  26. configure:
  27. tflags: -n -t --shallow=25 !FTP
  28. - name: torture-ftp
  29. install:
  30. configure:
  31. tflags: -n -t --shallow=20 FTP
  32. steps:
  33. - run: |
  34. sudo apt-get update
  35. sudo apt-get install libtool autoconf automake pkg-config stunnel4 libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev libnghttp2-dev libssh2-1-dev libc-ares-dev ${{ matrix.build.install }}
  36. sudo python3 -m pip install impacket
  37. name: 'install prereqs and impacket'
  38. - uses: actions/checkout@v3
  39. - run: autoreconf -fi
  40. name: 'autoreconf'
  41. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }} --with-openssl --enable-debug --enable-ares
  42. name: 'configure'
  43. - run: make V=1
  44. name: 'make'
  45. - run: make V=1 test-torture
  46. name: 'test'
  47. env:
  48. TFLAGS: "${{ matrix.build.tflags }}"