ngtcp2-gnutls.yml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # Copyright (C) 2000 - 2022 Daniel Stenberg, <daniel@haxx.se>, et al.
  2. #
  3. # SPDX-License-Identifier: curl
  4. name: ngtcp2
  5. on:
  6. push:
  7. branches:
  8. - master
  9. - '*/ci'
  10. pull_request:
  11. branches:
  12. - master
  13. concurrency:
  14. # Hardcoded workflow filename as workflow name above is just Linux again
  15. group: ngtcp2-gnutls-${{ github.event.pull_request.number || github.sha }}
  16. cancel-in-progress: true
  17. jobs:
  18. autotools:
  19. name: ${{ matrix.build.name }}
  20. runs-on: 'ubuntu-latest'
  21. timeout-minutes: 60
  22. strategy:
  23. fail-fast: false
  24. matrix:
  25. build:
  26. - name: gnutls
  27. install: nettle-dev libp11-kit-dev libtspi-dev libunistring-dev guile-2.2-dev libtasn1-bin libtasn1-6-dev libidn2-0-dev gawk gperf libtss2-dev dns-root-data bison gtk-doc-tools texinfo texlive texlive-extra-utils autopoint libev-dev
  28. configure: LDFLAGS="-Wl,-rpath,$HOME/all/lib" --with-gnutls=$HOME/all --enable-debug
  29. gnutls-configure: --with-included-libtasn1 --with-included-unistring --disable-guile --disable-doc --disable-tests
  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 https://gitlab.com/gnutls/nettle.git
  38. cd nettle
  39. ./.bootstrap
  40. ./configure LDFLAGS="-Wl,-rpath,$HOME/all/lib" ${{ matrix.build.nettle-configure }} --prefix=$HOME/all --libdir=$HOME/all/lib --disable-documentation
  41. make install
  42. name: 'install nettle'
  43. - run: |
  44. git clone --depth=1 -b 3.7.7 https://github.com/gnutls/gnutls.git
  45. cd gnutls
  46. ./bootstrap
  47. ./configure PKG_CONFIG_PATH="$HOME/all/lib/pkgconfig" LDFLAGS="-Wl,-rpath,$HOME/all/lib -L$HOME/all/lib" --prefix=$HOME/all ${{ matrix.build.gnutls-configure }} --disable-tools
  48. make install
  49. name: 'install gnutls'
  50. - run: |
  51. git clone --depth=1 https://github.com/ngtcp2/nghttp3
  52. cd nghttp3
  53. autoreconf -fi
  54. ./configure --prefix=$HOME/all --enable-lib-only
  55. make install
  56. name: 'install nghttp3'
  57. - run: |
  58. git clone --depth=1 https://github.com/ngtcp2/ngtcp2
  59. cd ngtcp2
  60. autoreconf -fi
  61. ./configure PKG_CONFIG_PATH=$HOME/all/lib/pkgconfig LDFLAGS="-Wl,-rpath,$HOME/all/lib" --prefix=$HOME/all --enable-lib-only --with-gnutls=$HOME/all
  62. make install
  63. name: 'install ngtcp2'
  64. - uses: actions/checkout@v3
  65. - run: autoreconf -fi
  66. name: 'autoreconf'
  67. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
  68. name: 'configure'
  69. - run: make V=1
  70. name: 'make'
  71. - run: make V=1 examples
  72. name: 'make examples'
  73. - run: make V=1 -C tests
  74. name: 'make tests'
  75. - run: make V=1 test-ci
  76. name: 'run tests'
  77. env:
  78. TFLAGS: "${{ matrix.build.tflags }}"