File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments