nss.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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: NSS
  25. install: clang-9 libnss3-dev libpsl-dev libbrotli-dev libzstd-dev libnghttp2-dev nss-plugin-pem
  26. configure: CC=clang-9 CPPFLAGS="-isystem /usr/include/nss" --with-nss --enable-debug --with-nss-deprecated
  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. - uses: actions/checkout@v3
  34. - run: autoreconf -fi
  35. name: 'autoreconf'
  36. - run: ./configure --enable-warnings --enable-werror ${{ matrix.build.configure }}
  37. name: 'configure with clang'
  38. - run: make V=1
  39. name: 'make'
  40. - run: make V=1 examples
  41. name: 'make examples'
  42. - run: make V=1 test-ci
  43. name: 'test'
  44. env:
  45. TFLAGS: "${{ matrix.build.tflags }}"