on push #1
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: | ||
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 GitHub Actions / Build MosquittoInvalid workflow file
|
||
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 |