Skip to content

Commit

Permalink
Merge pull request #7 from t123yh/master
Browse files Browse the repository at this point in the history
Create release on tag; build and push macOS .dmg on release
  • Loading branch information
jiegec committed Apr 10, 2023
2 parents 30a81e8 + 9cbeab2 commit 82c1af2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create macOS release on tag push

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
modules: qtwebengine
- name: qmake
run: qmake qserial.pro
- name: make
run: make
- name: Change libusb path
run: install_name_tool -change /usr/local/opt/libusb/lib/libusb-1.0.0.dylib @executable_path/../Frameworks/libusb-1.0.0.dylib QSerial.app/Contents/MacOS/QSerial
- name: Copy libusb to frameworks
run: mkdir -p QSerial.app/Contents/Frameworks && cp /usr/local/lib/libusb-1.0.0.dylib QSerial.app/Contents/Frameworks/libusb-1.0.0.dylib
- name: Qt mac deploy to .dmg
run: macdeployqt QSerial.app -verbose=1 -dmg
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: QSerial.dmg

permissions:
contents: write

0 comments on commit 82c1af2

Please sign in to comment.