Skip to content

Commit

Permalink
chore: condense
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed Feb 21, 2024
1 parent b1c06dc commit 5312dbe
Showing 1 changed file with 34 additions and 55 deletions.
89 changes: 34 additions & 55 deletions .github/workflows/build-mosquitto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,61 +51,40 @@ jobs:
path: mosquitto.exe


build-mac-x86:
runs-on: macos-13
steps:
- name: Set up build environment
run: |
brew install cmake
brew install openssl
brew install libwebsockets
brew install ossp-uuid
brew install wget
build-mac:
strategy:
matrix:
include:
- os: macos-13
arch: x86-64
# Mac M1 is in beta and is labeled as macos-14
- os: macos-14
arch: arm64
runs-on: ${{ matrix.os }}

- 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
# https://github.com/eclipse/mosquitto/issues/2858#issuecomment-1777978779
- name: Build Mosquitto
run: |
cd mosquitto
cmake -DCMAKE_MODULE_LINKER_FLAGS="-undefined dynamic_lookup" .
WITH_DOCS=no cmake --build .
steps:
- name: Set up build environment
run: |
brew install cmake
brew install openssl
brew install libwebsockets
brew install ossp-uuid
brew install wget
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: mosquitto-binary-mac-x86-64
path: mosquitto/src/mosquitto
- 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 .
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
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: mosquitto-binary-mac-${{ matrix.arch }}
path: mosquitto/src/mosquitto

0 comments on commit 5312dbe

Please sign in to comment.