build-openssl.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: Build with OpenSSL
  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@v2
  12. - name: install packages
  13. run: sudo apt update && sudo apt install libssl-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=0 -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@v2
  26. - name: install packages
  27. run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew reinstall [email protected]
  28. - name: submodules
  29. run: git submodule update --init --recursive --depth 1
  30. - name: cmake
  31. run: cmake -B build -DUSE_GNUTLS=0 -WARNINGS_AS_ERRORS=1 -DENABLE_LOCAL_ADDRESS_TRANSLATION=1
  32. env:
  33. OPENSSL_ROOT_DIR: /usr/local/opt/[email protected]
  34. - name: make
  35. run: (cd build; make -j2)
  36. - name: test
  37. run: ./build/tests
  38. build-windows:
  39. runs-on: windows-latest
  40. steps:
  41. - uses: actions/checkout@v2
  42. - uses: ilammy/msvc-dev-cmd@v1
  43. - name: install packages
  44. run: choco install openssl --version=3.1.1
  45. - name: submodules
  46. run: git submodule update --init --recursive --depth 1
  47. - name: cmake
  48. run: cmake -B build -G "NMake Makefiles" -DUSE_GNUTLS=0 -DWARNINGS_AS_ERRORS=1
  49. - name: nmake
  50. run: |
  51. cd build
  52. set CL=/MP
  53. nmake
  54. - name: test
  55. run: |
  56. cd build
  57. ./tests