Skip to content

Commit

Permalink
MacOS release GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Aug 30, 2023
1 parent ded35bc commit 3df12e1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: linux-release

on: workflow_dispatch

env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2

jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '${{ env.QT_VERSION }}'
target: 'desktop'
install-deps: 'true'
modules: 'qtscript'

- name: Versions
run: qmake -v

- name: Build
run: |
cd emulator
qmake "CONFIG+=release" -r GST_VERSION=1.0 QtUkncBtl.pro
make
- name: Packaging
working-directory: ${{ env.SOURCE_DIR }}/emulator
run: |
export PATH=$HOME/Qt/5.15/clang_64/bin:$PATH
mv QtUkncBtl QtUkncBtl.app
macdeployqt QtUkncBtl.app -verbose=1 -dmg
mv QtUkncBtl.dmg QtUkncBtl-macOS-${{ github.run_id }}.dmg
ls -l *.dmg
- name: Linux artefact
uses: actions/upload-artifact@v3
with:
name: AppImage
path: ${{ env.SOURCE_DIR }}/emulator/*.dmg

0 comments on commit 3df12e1

Please # to comment.