Skip to content

Update macOS_makefile.yml #20

Update macOS_makefile.yml

Update macOS_makefile.yml #20

name: macOS Release
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
ARTIFACT: SysexLiveMacOS.zip
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: ConorMacBride/[email protected]
with:
brew: qt5
- name: Create build directory
run: mkdir ${{ env.SOURCE_DIR }}/build
- name: Build
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
/usr/local/Cellar/qt@5/5.15.11/bin/qmake -r ${{ env.SOURCE_DIR }}/SysexLive/SysexLive.pro
make
ls -al
/usr/local/Cellar/qt@5/5.15.11/bin/macdeployqt SysexLive.app
- name: Zip build
working-directory: ${{ env.SOURCE_DIR }}/build
run: |
7z a ${{ env.ARTIFACT }} ${{ env.SOURCE_DIR }}/build/SysexLive.app -r
ls -al
- name: Save build artifact
uses: actions/upload-artifact@master
with:
name: ${{ env.ARTIFACT }}
path: ${{ env.SOURCE_DIR }}/build/${{ env.ARTIFACT }}