Nightly build at 2023年 8月 21日 月曜日 18:43:28 JST #565
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: MacOS | |
on: | |
push: | |
branches: [ master, nightlies ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-11 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
set -e | |
echo "updating brew" | |
brew update || true | |
echo "installing deps" | |
# use || true because it returns 1 | |
brew install ccache curl gnu-sed fftw meson libsamplerate sdl2 lilv librsvg adwaita-icon-theme gtk+3 guile gtksourceview5 graphviz zstd npm rt-audio rtmidi jack qjackctl cmake pcre2 libsass glib-utils || true | |
brew install brotli xxhash awscli vamp-plugin-sdk json-glib boost libsoxr || true | |
echo "linking python" | |
brew link --overwrite python | |
#npm install -g appdmg | |
echo "installing cmake" | |
pip3 install --user scikit-build | |
pip3 install --user cmake | |
- name: Fetch repos and files | |
run: | | |
pwd | |
git clone https://git.sr.ht/~alextee/mxe | |
git clone https://git.sr.ht/~alextee/zrythm | |
git clone https://git.sr.ht/~alextee/zrythm-builds | |
git clone --recursive https://git.sr.ht/~alextee/zrythm-installer | |
git clone https://github.com/KDE/breeze-icons | |
git clone https://github.com/mesonbuild/meson | |
# Use the following to inject a tmate session to SSH and debug | |
# things | |
# TODO check docs for more usage tips (e.g. ssh on failure) | |
#- name: Setup tmate session | |
#uses: mxschmitt/action-tmate@v3 | |
#- name: restore ccache | |
#uses: actions/cache@v3 | |
#with: | |
#path: /Users/runner/Library/Caches/ccache | |
#key: macos-ccache-${{ github.run_id }} | |
#restore-keys: | | |
#macos-ccache | |
#- name: configure ccache | |
#run: | | |
#test -d /Users/runner/Library/Preferences/ccache || mkdir /Users/runner/Library/Preferences/ccache | |
#echo "max_size = 4.0G" >> /Users/runner/Library/Preferences/ccache/ccache.conf | |
#ccache -sv | |
- name: Build and deploy | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
REMOTE_IP: ${{ secrets.REMOTE_IP }} | |
REMOTE_HOME: ${{ secrets.REMOTE_HOME }} | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
run: | | |
ssh-add - <<< "${SSH_PRIVATE_KEY}" | |
zrythm-builds/scripts/make-pkg.sh osx-brew-zip osx-brew-prepare | |
zrythm-builds/scripts/make-pkg.sh osx-brew-zip | |
zrythm-builds/scripts/push-pkg.sh osx-brew-zip | |