libressl.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: libressl
  25. install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev
  26. configure: LDFLAGS="-Wl,-rpath,$HOME/libressl/lib" --with-openssl=$HOME/libressl --enable-debug
  27. - name: libressl-clang
  28. install: libpsl-dev libbrotli-dev libzstd-dev zlib1g-dev clang
  29. configure: CC=clang LDFLAGS="-Wl,-rpath,$HOME/libressl/lib" --with-openssl=$HOME/libressl --enable-debug
  30. steps:
  31. - run: |
  32. sudo apt-get update
  33. sudo apt-get install libtool autoconf automake pkg-config stunnel4 ${{ matrix.build.install }}
  34. sudo python3 -m pip install impacket
  35. name: 'install prereqs and impacket'
  36. - run: |
  37. git clone --depth=1 -b v3.5.3 https://github.com/libressl-portable/portable.git libressl-git
  38. cd libressl-git
  39. ./autogen.sh
  40. ./configure --prefix=$HOME/libressl
  41. make
  42. make install
  43. name: 'build and install libressl'
  44. - uses: actions/checkout@v3
  45. - run: autoreconf -fi
  46. name: 'autoreconf'
  47. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
  48. name: 'configure'
  49. - run: make V=1
  50. name: 'make'
  51. - run: make V=1 examples
  52. name: 'make examples'
  53. - run: make V=1 test-ci
  54. name: 'test'
  55. env:
  56. TFLAGS: "${{ matrix.build.tflags }}"