Build MacOs package #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |