forked from 7h0ma5/QLog
-
Notifications
You must be signed in to change notification settings - Fork 20
62 lines (57 loc) · 2.28 KB
/
macOSBuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: macOS 12 deployment
#on: [push, pull_request]
on:
workflow_dispatch:
push:
branches:
- master
jobs:
macos-build:
name: MacOS Build
runs-on: macos-12
steps:
- name: Install Dependencies
run: |
unset HOMEBREW_NO_INSTALL_FROM_API
brew update
brew upgrade || true
brew install qt6
brew link qt6 --force
brew install hamlib
brew link hamlib --force
brew install qtkeychain
brew install dbus-glib
brew install brotli
brew install icu4c
brew install pkg-config
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure and Compile
run: |
mkdir build
cd build
qmake -config release ..
make -j2
- name: Build dmg
run: |
cd build
macdeployqt qlog.app
find /usr/local/opt/icu4c/lib/
cp /usr/local/lib/libhamlib.dylib qlog.app/Contents/Frameworks/libhamlib.dylib
cp /usr/local/lib/libqt6keychain.dylib qlog.app/Contents/Frameworks/libqt6keychain.dylib
cp /usr/local/lib/libdbus-1.dylib qlog.app/Contents/Frameworks/libdbus-1.dylib
cp `brew --prefix brotli`/lib/libbrotlicommon.1.dylib qlog.app/Contents/Frameworks/libbrotlicommon.1.dylib
cp /usr/local/opt/icu4c/lib/libicui18n.73.dylib qlog.app/Contents/Frameworks/libicui18n.73.dylib
install_name_tool -change /usr/local/lib/libhamlib.dylib @executable_path/../Frameworks/libhamlib.dylib qlog.app/Contents/MacOS/qlog
install_name_tool -change /usr/local/lib/libqt6keychain.dylib @executable_path/../Frameworks/libqt6keychain.dylib qlog.app/Contents/MacOS/qlog
install_name_tool -change @loader_path/libbrotlicommon.1.dylib @executable_path/../Frameworks/libbrotlicommon.1.dylib qlog.app/Contents/MacOS/qlog
install_name_tool -change /usr/local/opt/icu4c/lib/libicui18n.73.dylib @executable_path/../Frameworks/libicui18n.73.dylib qlog.app/Contents/MacOS/qlog
otool -L qlog.app/Contents/MacOS/qlog
macdeployqt qlog.app -dmg
- name: Copy artifact
uses: actions/upload-artifact@v3
with:
name: qlog
path: /Users/runner/work/QLog/QLog/build/qlog.dmg