Skip to content

Commit

Permalink
Add M1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed Feb 21, 2024
1 parent f9363d6 commit b1c06dc
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/build-mosquitto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
path: mosquitto.exe


build-mac:
runs-on: macos-latest
build-mac-x86:
runs-on: macos-13
steps:
- name: Set up build environment
run: |
Expand All @@ -68,6 +68,7 @@ jobs:
tar xvf mosquitto-2.0.18.tar.gz
mv mosquitto-2.0.18 mosquitto
# https://github.com/eclipse/mosquitto/issues/2858#issuecomment-1777978779
- name: Build Mosquitto
run: |
cd mosquitto
Expand All @@ -77,5 +78,34 @@ jobs:
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: mosquitto-binary-mac
name: mosquitto-binary-mac-x86-64
path: mosquitto/src/mosquitto

build-mac-m1:
runs-on: macos-14
steps:
- name: Set up build environment
run: |
brew install cmake
brew install openssl
brew install libwebsockets
brew install ossp-uuid
brew install wget
- name: Get Mosquitto Source
run: |
wget https://mosquitto.org/files/source/mosquitto-2.0.18.tar.gz
tar xvf mosquitto-2.0.18.tar.gz
mv mosquitto-2.0.18 mosquitto
- name: Build Mosquitto
run: |
cd mosquitto
cmake -DCMAKE_MODULE_LINKER_FLAGS="-undefined dynamic_lookup" .
WITH_DOCS=no cmake --build .
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: mosquitto-binary-mac-m1
path: mosquitto/src/mosquitto

0 comments on commit b1c06dc

Please sign in to comment.