Skip to content

Commit 82c1af2

Browse files
authored
Merge pull request #7 from t123yh/master
Create release on tag; build and push macOS .dmg on release
2 parents 30a81e8 + 9cbeab2 commit 82c1af2

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Create macOS release on tag push
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Install Qt
14+
uses: jurplel/install-qt-action@v3
15+
with:
16+
modules: qtwebengine
17+
- name: qmake
18+
run: qmake qserial.pro
19+
- name: make
20+
run: make
21+
- name: Change libusb path
22+
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
23+
- name: Copy libusb to frameworks
24+
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
25+
- name: Qt mac deploy to .dmg
26+
run: macdeployqt QSerial.app -verbose=1 -dmg
27+
- name: Release
28+
uses: softprops/action-gh-release@v1
29+
if: startsWith(github.ref, 'refs/tags/')
30+
with:
31+
files: QSerial.dmg
32+
33+
permissions:
34+
contents: write

0 commit comments

Comments
 (0)