homebrew installation fix #9
Workflow file for this run
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, 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: Set up Homebrew | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo "eval $(/opt/homebrew/bin/brew shellenv)" >> $GITHUB_ENV | |
echo "HOMEBREW_PREFIX=/opt/homebrew" >> $GITHUB_ENV | |
echo "HOMEBREW_CELLAR=/opt/homebrew/Cellar" >> $GITHUB_ENV | |
echo "HOMEBREW_REPOSITORY=/opt/homebrew" >> $GITHUB_ENV | |
shell: bash | |
- name: Update PATH | |
run: echo "PATH=$PATH:/opt/homebrew/bin:/opt/homebrew/sbin" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
source $GITHUB_ENV | |
brew install libzmq mosquitto parquet | |
shell: bash | |
- name: Cache Qt | |
id: cache-qt | |
uses: actions/cache@v1 | |
with: | |
path: '${{ github.workspace }}/qt_installation/' | |
key: ${{ runner.os }}-QtCache | |
- 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 }} | |
aqtversion: '==3.1.17' | |
py7zrversion: '==0.22.0' | |
- name: Build Plotjuggler | |
shell: pwsh | |
run: | | |
cmake -B build -DCMAKE_INSTALL_PREFIX=install PlotJuggler | |
cmake --build build --target install |