build_macos.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: "Builds for MacOS"
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. runs-on: macos-latest
  6. steps:
  7. - name: Check out code
  8. uses: actions/checkout@v2
  9. - name: Install dependencies
  10. run: |
  11. brew update
  12. brew install doxygen
  13. - name: Build
  14. run: |
  15. rm -rf build.paho
  16. mkdir build.paho
  17. cd build.paho
  18. echo "pwd $PWD"
  19. cmake -DPAHO_BUILD_STATIC=FALSE -DPAHO_BUILD_SHARED=TRUE -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1 -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=TRUE ..
  20. cmake --build .
  21. - name: Start test broker
  22. run: |
  23. git clone https://github.com/eclipse/paho.mqtt.testing.git
  24. cd paho.mqtt.testing/interoperability
  25. python3 startbroker.py -c localhost_testing.conf &
  26. - name: Start test proxy
  27. run: |
  28. python3 test/mqttsas.py &
  29. - name: run tests
  30. run: |
  31. cd build.paho
  32. ctest -VV --timeout 600
  33. - name: clean up
  34. run: |
  35. killall python3 || true
  36. sleep 3 # allow broker time to terminate and report
  37. - name: package
  38. run: |
  39. cd build.paho
  40. cpack --verbose