ci: fixes macOS builds #530
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macos | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
macos-build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-13 | |
- macos-latest | |
steps: | |
- name: Sync repository | |
uses: actions/checkout@v2 | |
- name: Prepare Homebrew and Install Dependencies | |
run: | | |
rm -rf /usr/local/var/homebrew/locks | |
brew cleanup -s | |
brew update | |
brew install mosquitto zeromq qt@5 | |
- name: Build PlotJuggler | |
run: | | |
export CMAKE_PREFIX_PATH=$(brew --prefix qt@5):$(brew --prefix zeromq) | |
export LDFLAGS="-L/usr/local/opt/zeromq/lib" | |
export CPPFLAGS="-I/usr/local/opt/zeromq/include" | |
export LIBRARY_PATH=/usr/local/opt/zeromq/lib | |
export CPATH=/usr/local/opt/zeromq/include | |
cmake -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler | |
cmake --build build --target install |