Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/mac-release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: SerialPrograms MacOS Release

on:
push:
tags:
# Start MacOS release flow when a new version tag is created
create:
branch:
# Start MacOS release flow when a new version branch is created
- 'v*'
workflow_dispatch:
# Manual release / testing
Expand Down Expand Up @@ -35,7 +35,7 @@ on:

jobs:
build:
runs-on: ${{ github.event.inputs.runner }}
runs-on: ${{ github.event.inputs.runner || 'macos-13'}}
steps:
- name: Checkout Arduino-Source
uses: actions/checkout@v4
Expand All @@ -55,9 +55,12 @@ jobs:
brew install tesseract-lang
brew install opencv

- name: Get QT Version
run: echo "QT_VERSION=${{ github.event.inputs.qt_version || '6.8.2' }}" >> $GITHUB_ENV

- uses: jurplel/install-qt-action@v4
with:
version: ${{ github.event.inputs.qt_version }}
version: ${{ env.QT_VERSION }}
modules: 'qtmultimedia qtserialport'

- name: Build SerialPrograms.app
Expand All @@ -66,7 +69,7 @@ jobs:
mkdir bin
cd bin
cmake .. -DUNIX_LINK_TESSERACT:BOOL=true -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build . -j ${{ github.event.inputs.jobs }}
cmake --build . -j ${{ github.event.inputs.jobs || 4}}
cp -r SerialPrograms.app ../../../SerialPrograms.app

# Important: GitHub MacOS runners do not have the lib area in its rpath by default. It must manually be added for frameworks to be discovered and added to the bundle
Expand Down Expand Up @@ -125,5 +128,5 @@ jobs:
with:
files: SerialPrograms-Installer.dmg
# Tag should be automatically set in the case of a tag push
tag_name: ${{ github.event.inputs.version }}
tag_name: ${{ github.event.inputs.version || github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}