Skip to content

Build MacOs package #10

Build MacOs package

Build MacOs package #10

Workflow file for this run

name: 'Build MacOs package'
on: workflow_dispatch
env:
PD_VERSION: 0.54-0-Next
jobs:
make-package:
runs-on: macos-11
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install Jack
run: |
curl -L -o jack.tgz https://github.com/jackaudio/jack2-releases/releases/download/v1.9.22/jack2-macOS-universal-v1.9.22.tar.gz
test ! -e jack.tgz || tar -xvf jack.tgz "jack*.pkg"
for f in ./jack*.pkg; do test -e "${f}" || continue; sudo installer -pkg "${f}" -target /; done
rm -f jack*.pkg jack.tgz
- name: Install Homebrew Dependencies
run: |
brew update
brew install automake autoconf
- name: configure Pd
run: |
./autogen.sh
./configure --enable-jack --disable-jack-framework CFLAGS="-arch x86_64 -arch arm64"
- name: make Pd
run: make
- name: make package
working-directory: ./mac
run: |
./osx-app.sh $PD_VERSION
hdiutil create -volname Pd-$PD_VERSION.app -format UDZO -srcfolder Pd-$PD_VERSION.app Pd-$PD_VERSION.dmg
- name: prepare for upload
working-directory: ./mac
run: |
mkdir upload-container
mv Pd-$PD_VERSION.dmg upload-container
- name: upload package
uses: actions/upload-artifact@v3
with:
name: MacOs-Build
path: mac/upload-container