forked from facontidavide/PlotJuggler
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds runners for both Intel and Apple silicon macs --------- Co-authored-by: Daniel Agar <[email protected]> Co-authored-by: Ramon Roche <[email protected]> Co-authored-by: Farhang Naderi <[email protected]>
- Loading branch information
1 parent
238b203
commit 123b35a
Showing
6 changed files
with
51 additions
and
46 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,41 @@ | ||
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: | | ||
rm -rf /usr/local/var/homebrew/locks | ||
brew cleanup -s | ||
brew update | ||
brew install mosquitto zeromq qt@5 | ||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,4 +110,5 @@ | |
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> | ||
</ui> | ||
|
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