build-gnutls.yml 1008 B

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