build-mbedtls.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Build with Mbed TLS
  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: Set up Homebrew
  13. uses: Homebrew/actions/setup-homebrew@master
  14. - name: Install Mbed TLS
  15. run: brew update && brew install mbedtls@3
  16. - name: submodules
  17. run: git submodule update --init --recursive --depth 1
  18. - name: cmake
  19. run: cmake -B build -DUSE_MBEDTLS=1 -DWARNINGS_AS_ERRORS=1 -DCMAKE_PREFIX_PATH=$(brew --prefix mbedtls@3)
  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@v6
  28. - name: Install Mbed TLS
  29. run: brew update && brew install mbedtls@3
  30. - name: submodules
  31. run: git submodule update --init --recursive --depth 1
  32. - name: cmake
  33. run: cmake -B build -DUSE_MBEDTLS=1 -DWARNINGS_AS_ERRORS=1 -DENABLE_LOCAL_ADDRESS_TRANSLATION=1 -DCMAKE_PREFIX_PATH=$(brew --prefix mbedtls@3)
  34. - name: make
  35. run: (cd build; make -j2)
  36. - name: test
  37. run: ./build/tests