Skip to content

Commit ee3b8ad

Browse files
committed
ci: build mosquitto
1 parent 9140b44 commit ee3b8ad

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build Mosquitto
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
mosquitto-version:
7+
description: 'Mosquitto version'
8+
required: true
9+
default: '2.0.18'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Set up build environment
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y build-essential libc-ares-dev libssl-dev libwebsockets-dev uuid-dev xsltproc wget
20+
21+
- name: Get Mosquitto Source
22+
run: |
23+
mosquitto_version=${{ github.event.inputs.mosquitto-version }}
24+
wget "https://mosquitto.org/files/source/mosquitto-${{ mosquitto_version }}.tar.gz"
25+
tar xvf "mosquitto-${{ mosquitto_version }}.tar.gz"
26+
mv "mosquitto-${{ mosquitto_version }}" mosquitto
27+
28+
- name: Build Mosquitto
29+
run: |
30+
cd mosquitto
31+
make binary
32+
33+
- name: Archive artifacts
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: mosquitto-binary
37+
path: mosquitto/src/mosquitto

0 commit comments

Comments
 (0)