build-gnutls.yml 1015 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Build with GnuTLS
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build-linux:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: install packages
  15. run: sudo apt update && sudo apt install libgnutls28-dev nettle-dev libsrtp2-dev
  16. - name: submodules
  17. run: git submodule update --init --recursive
  18. - name: cmake
  19. run: cmake -B build -DUSE_GNUTLS=1 -DUSE_SYSTEM_SRTP=1 -DWARNINGS_AS_ERRORS=1
  20. - name: make
  21. run: (cd build; make -j2)
  22. - name: test
  23. run: ./build/tests
  24. build-macos:
  25. runs-on: macos-latest
  26. steps:
  27. - uses: actions/checkout@v2
  28. - name: install packages
  29. run: brew install gnutls nettle
  30. - name: submodules
  31. run: git submodule update --init --recursive
  32. - name: cmake
  33. run: cmake -B build -DUSE_GNUTLS=1 -DWARNINGS_AS_ERRORS=1 -DENABLE_LOCAL_ADDRESS_TRANSLATION=1
  34. - name: make
  35. run: (cd build; make -j2)
  36. - name: test
  37. run: ./build/tests