Add MacOS builds

This commit is contained in:
Ian Craggs 2021-09-09 12:14:28 +01:00
parent 08d7757dea
commit c26338da7a
3 changed files with 43 additions and 1 deletions

View File

@ -1,5 +1,5 @@
name: "Builds for Linux"
on: push
on: [push, pull_request]
jobs:
build:

41
.github/workflows/build_macos.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: "Builds for MacOS"
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies
run: |
brew update
brew install doxygen
- name: Build
run: |
rm -rf build.paho
mkdir build.paho
cd build.paho
echo "pwd $PWD"
cmake -DPAHO_BUILD_STATIC=FALSE -DPAHO_BUILD_SHARED=TRUE -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DOPENSSL_ROOT_DIR= -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE -DPAHO_HIGH_PERFORMANCE=TRUE ..
cmake --build .
- name: Start test broker
run: |
git clone https://github.com/eclipse/paho.mqtt.testing.git
cd paho.mqtt.testing/interoperability
python3 startbroker.py -c localhost_testing.conf &
- name: Start test proxy
run: |
python3 test/mqttsas.py &
- name: run tests
run: |
cd build.paho
ctest -VV --timeout 600
- name: clean up
run: |
killall python3 || true
sleep 3 # allow broker time to terminate and report
- name: package
run: |
cd build.paho
cpack --verbose

View File

@ -14,4 +14,5 @@ jobs:
fetch-depth: 0
- run: |
git checkout -b coverity-develop origin/develop
git pull origin coverity-develop
git push origin coverity-develop