Skip to content

Build MacOS x64

Build MacOS x64 #1

Workflow file for this run

name: Build MacOS x64
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
brew update
brew install libsndfile wxwidgets
- name: Build
run: |
cmake . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- name: Create .app bundle
run: |
cp build/dist/bmhelper Resources/Be-Music\ Helper.app/Contents/MacOS/bmhelper
cp -r i18n Resources/Be-Music\ Helper.app/Contents/MacOS/i18n
- name: Extract version from tag
if: startsWith(github.ref, 'refs/tags/')
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Create DMG
run: |
hdiutil create -volname BMHelper \
-srcfolder Resources/Be-Music\ Helper.app \
-ov -format UDZO bmhelper_${{ env.VERSION }}_mac-x64.dmg
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: bmhelper_${{ env.VERSION }}_mac-x64
path: bmhelper_${{ env.VERSION }}_mac-x64.dmg