rustls.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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: rustls
  25. install: libpsl-dev libbrotli-dev libzstd-dev
  26. configure: --with-rustls=$HOME/rustls --enable-debug
  27. steps:
  28. - run: |
  29. sudo apt-get update
  30. sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
  31. sudo python3 -m pip install impacket
  32. name: 'install prereqs and impacket'
  33. - run: |
  34. git clone --depth=1 --recursive https://github.com/rustls/rustls-ffi.git -b v0.8.2
  35. curl https://sh.rustup.rs -sSf | sh -s -- -y
  36. source $HOME/.cargo/env
  37. cd rustls-ffi
  38. make
  39. make DESTDIR=$HOME/rustls install
  40. name: 'install rustls'
  41. - uses: actions/checkout@v3
  42. - run: autoreconf -fi
  43. name: 'autoreconf'
  44. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
  45. name: 'configure'
  46. - run: make V=1
  47. name: 'make'
  48. - run: make V=1 examples
  49. name: 'make examples'
  50. - run: make V=1 test-ci
  51. name: 'test'
  52. env:
  53. TFLAGS: "${{ matrix.build.tflags }}"