-
-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fixes macOS builds (#1) adds runners for both Intel and Apple silicon macs --------- Co-authored-by: Daniel Agar <daniel@agar.ca> Co-authored-by: Ramon Roche <mrpollo@gmail.com>
- Loading branch information
1 parent
b1ad089
commit e8860d4
Showing
4 changed files
with
47 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
name: macos | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
|
||
macos-build: | ||
runs-on: ${{ matrix.macos-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
macos-version: | ||
- 'macos-latest' | ||
os: | ||
- macos-13 | ||
- macos-latest | ||
|
||
steps: | ||
- name: Sync repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache Qt | ||
id: cache-qt | ||
uses: actions/cache@v1 # not v2! | ||
with: | ||
path: '${{ github.workspace }}/qt_installation/' | ||
key: ${{ runner.os }}-QtCache | ||
- name: Prepare Homebrew and Install Dependencies | ||
run: | | ||
brew cleanup -s | ||
brew update | ||
brew install mosquitto zeromq qt@5 protobuf@21 | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v2.13.0 | ||
with: | ||
version: '5.15.2' | ||
host: 'mac' | ||
dir: '${{ github.workspace }}/qt_installation/' | ||
cached: ${{ steps.cache-qt.outputs.cache-hit }} | ||
- 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 | ||
- name: Build Plotjuggler | ||
shell: pwsh | ||
run: > | ||
cmake -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler; | ||
cmake -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler | ||
cmake --build build --target install |
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
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
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