Skip to content

Commit

Permalink
removed Qt cache, switch to tmate if only fails
Browse files Browse the repository at this point in the history
  • Loading branch information
farhangnaderi committed Nov 12, 2024
1 parent 67e16f1 commit 7f6d857
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: macos
on: [push, pull_request]

jobs:

macos-build:
runs-on: ${{ matrix.os.os }}
strategy:
Expand All @@ -20,33 +19,15 @@ jobs:
- name: Install dependencies
run: |
brew update
brew install mosquitto zeromq
brew install mosquitto zeromq qt@5
shell: pwsh

- name: Cache Qt
id: cache-qt
uses: actions/cache@v4
with:
path: '${{ github.workspace }}/qt_installation/'
key: ${{ runner.os }}-QtCache-${{ matrix.os.arch }}-5.15.2

- name: Install Qt
uses: jurplel/[email protected]
with:
version: '5.15.2'
host: 'mac'
dir: '${{ github.workspace }}/qt_installation/'
arch: ${{ matrix.os.arch }}
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
- name: Setup tmate session
if: always()
run: |
brew install tmate
tmate -F
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

0 comments on commit 7f6d857

Please sign in to comment.