Syntax error #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Mosquitto | ||
on: | ||
push: | ||
workflow_dispatch: | ||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up build environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libc-ares-dev libssl-dev libwebsockets-dev uuid-dev xsltproc wget libcjson-dev | ||
- name: Get Mosquitto Source | ||
run: | | ||
wget https://mosquitto.org/files/source/mosquitto-2.0.18.tar.gz | ||
tar xvf mosquitto-2.0.18.tar.gz | ||
mv mosquitto-2.0.18 mosquitto | ||
- name: Build Mosquitto | ||
run: | | ||
cd mosquitto | ||
make binary | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mosquitto-binary-linux | ||
path: mosquitto/src/mosquitto | ||
build-windows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up build environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget | ||
- name: Get Mosquitto Source | ||
run: | | ||
wget https://mosquitto.org/files/binary/win64/mosquitto-2.0.18-install-windows-x64.exe | ||
mv mosquitto-2.0.18-install-windows-x64.exe mosquitto.exe | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mosquitto-binary-windows | ||
path: mosquitto.exe | ||
build-mac: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Set up build environment | ||
run: | | ||
brew install cmake | ||
brew install openssl | ||
brew install libwebsockets | ||
brew install ossp-uuid | ||
brew install wget | ||
- name: Get Mosquitto Source | ||
run: | | ||
wget https://mosquitto.org/files/source/mosquitto-2.0.18.tar.gz | ||
tar xvf mosquitto-2.0.18.tar.gz | ||
mv mosquitto-2.0.18 mosquitto | ||
- name: Build Mosquitto | ||
run: | | ||
cd mosquitto | ||
cmake . | ||
WITH_DOCS=no cmake --build . | ||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mosquitto-binary-mac | ||
path: mosquitto/src/mosquitto |