Skip to content

Syntax error

Syntax error #9

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:

Check failure on line 36 in .github/workflows/build-mosquitto.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-mosquitto.yaml

Invalid workflow file

You have an error in your yaml syntax on line 36
- 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