Skip to content

Commit

Permalink
Macos ci (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide authored Jul 12, 2022
1 parent 8d5681a commit 642d7b8
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 32 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: macos

on: [push, pull_request]

jobs:

macos-build:
runs-on: ${{ matrix.macos-version }}
strategy:
fail-fast: false
matrix:
macos-version:
- '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: 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
shell: pwsh
run: >
cmake -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler;
cmake --build build --target install
30 changes: 1 addition & 29 deletions .github/workflows/cmake.yaml → .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cmake
name: ubuntu

on: [push, pull_request]

Expand Down Expand Up @@ -33,31 +33,3 @@ jobs:
run: |
cmake -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler;
cmake --build build --target install
windows-build:
runs-on: ${{ matrix.windows-version }}
strategy:
fail-fast: false
matrix:
windows-version:
- 'windows-2019'
- 'windows-latest'
env:
CXXFLAGS: /MP

steps:
- name: Sync repository
uses: actions/checkout@v2

- name: Install Qt
uses: jurplel/[email protected]
with:
version: '5.15.2'
arch: 'win64_msvc2019_64'
dir: '${{ github.workspace }}/qt_installation/'

- name: Build Plotjuggler
shell: pwsh
run: >
cmake -Ax64 -T host=x64 -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler;
cmake --build build --target install
42 changes: 42 additions & 0 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: windows

on: [push, pull_request]

jobs:

windows-build:
runs-on: ${{ matrix.windows-version }}
strategy:
fail-fast: false
matrix:
windows-version:
- 'windows-2019'
- 'windows-latest'
env:
CXXFLAGS: /MP

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: Install Qt
uses: jurplel/[email protected]
with:
version: '5.15.2'
arch: 'win64_msvc2019_64'
dir: '${{ github.workspace }}/qt_installation/'
cached: ${{ steps.cache-qt.outputs.cache-hit }}

- name: Build Plotjuggler
shell: pwsh
run: >
cmake -Ax64 -T host=x64 -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler;
cmake --build build --target install
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
![PlotJuggler](docs/plotjuggler3_banner.svg)

[![cmake](https://github.com/facontidavide/PlotJuggler/actions/workflows/cmake.yaml/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions/workflows/cmake.yaml)
[![CI](https://github.com/facontidavide/PlotJuggler/workflows/ros1/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions?query=workflow%3Aros1)
[![CI](https://github.com/facontidavide/PlotJuggler/workflows/ros2/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions?query=workflow%3Aros2)
[![windows](https://github.com/facontidavide/PlotJuggler/actions/workflows/windows.yaml/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions/workflows/windows.yaml)
[![ubuntu](https://github.com/facontidavide/PlotJuggler/actions/workflows/ubuntu.yaml/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions/workflows/ubuntu.yaml)
[![macos](https://github.com/facontidavide/PlotJuggler/actions/workflows/macos.yaml/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions/workflows/macos.yaml)
[![ROS1](https://github.com/facontidavide/PlotJuggler/workflows/ros1/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions?query=workflow%3Aros1)
[![ROS2](https://github.com/facontidavide/PlotJuggler/workflows/ros2/badge.svg)](https://github.com/facontidavide/PlotJuggler/actions?query=workflow%3Aros2)
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=I%20use%20PlotJuggler%20and%20it%20is%20amazing%0D%0A&url=https://github.com/facontidavide/PlotJuggler&via=facontidavide&hashtags=dataviz,plotjuggler,GoROS,PX4)

**Gold Sponsor**: [Greenzie](https://www.greenzie.com/)
Expand Down

0 comments on commit 642d7b8

Please sign in to comment.