Skip to content

Commit 54fc9b9

Browse files
committed
Just download windows binary
1 parent 1a6e2b8 commit 54fc9b9

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

.github/workflows/build-mosquitto.yaml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,20 @@ jobs:
3232
path: mosquitto/src/mosquitto
3333

3434
build-windows:
35-
runs-on: windows-latest
36-
steps:
37-
- name: Set up build environment
38-
run: |
39-
choco install cmake -y
40-
choco install openssl -y
41-
choco install libwebsockets -y
42-
choco install libuuid -y
43-
choco install xsltproc -y
44-
choco install wget -y
45-
choco install mingw -y
46-
47-
- name: Get Mosquitto Source
48-
run: |
49-
wget https://mosquitto.org/files/source/mosquitto-2.0.18.tar.gz
50-
tar xvf mosquitto-2.0.18.tar.gz
51-
mv mosquitto-2.0.18 mosquitto
52-
53-
- name: Build Mosquitto
54-
run: |
55-
cd mosquitto
56-
cmake .
57-
WITH_DOCS=no cmake --build .
35+
runs-on: ubuntu-latest
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y wget
39+
run: |
40+
wget https://mosquitto.org/files/binary/win64/mosquitto-2.0.18-install-windows-x64.exe
41+
mv mosquitto-2.0.18-install-windows-x64.exe mosquitto.exe
5842
5943
- name: Archive artifacts
6044
uses: actions/upload-artifact@v2
6145
with:
6246
name: mosquitto-binary-windows
63-
path: mosquitto/src/mosquitto.exe
47+
path: mosquitto.exe
48+
6449

6550
build-mac:
6651
runs-on: macos-latest

0 commit comments

Comments
 (0)