Skip to content

Preparation for release 0.28.0 #30

Preparation for release 0.28.0

Preparation for release 0.28.0 #30

Workflow file for this run

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