Skip to content

on push

on push #1

name: Build Mosquitto
on:
push:
workflow_dispatch:
inputs:
mosquitto-version:
description: 'Mosquitto version'
required: true
default: '2.0.18'
jobs:
build:
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
- name: Get Mosquitto Source
run: |

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

View workflow run for this annotation

GitHub Actions / Build Mosquitto

Invalid workflow file

The workflow is not valid. .github/workflows/build-mosquitto.yaml (Line: 23, Col: 14): Unrecognized named-value: 'mosquitto_version'. Located at position 1 within expression: mosquitto_version
mosquitto_version=${{ github.event.inputs.mosquitto-version }}
wget "https://mosquitto.org/files/source/mosquitto-${{ mosquitto_version }}.tar.gz"
tar xvf "mosquitto-${{ mosquitto_version }}.tar.gz"
mv "mosquitto-${{ mosquitto_version }}" mosquitto
- name: Build Mosquitto
run: |
cd mosquitto
make binary
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: mosquitto-binary
path: mosquitto/src/mosquitto