a highly automated and intuitive digital audio workstation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.7 KiB

# SPDX-FileCopyrightText: © 2022 Alexandros Theodotou <alex at zrythm dot org>
# SPDX-License-Identifier: FSFAP
name: MacOS
on: [ push, pull_request, workflow_dispatch ]
runs-on: macos-latest
- uses: actions/checkout@v2
path: zrythm
- name: Install dependencies
run: |
set -e
echo "updating brew"
brew update || true
echo "installing deps"
# use || true because it returns 1
brew install gnu-sed fftw meson libsamplerate sdl2 chromaprint libgtop lilv librsvg adwaita-icon-theme guile gtksourceview5 graphviz zstd npm rt-audio rtmidi jack qjackctl cmake help2man xxhash vamp-plugin-sdk json-glib glib-utils libsass sassc carla faust boost || true
echo "linking python"
brew link --overwrite python
#npm install -g appdmg
echo "installing cmake"
pip3 install scikit-build
pip3 install cmake
- name: Fetch repos and files
run: |
git clone https://github.com/mesonbuild/meson
- name: Build
run: |
cd zrythm
gsed -i "s|'VERSION'|'VERSION.txt'|" meson.build
meson build -Dtests=true -Dgtk4:x11-backend=false -Dx11=disabled
mv subprojects/libaudec/VERSION subprojects/libaudec/VERSION.txt
gsed -i "s|'VERSION'|'VERSION.txt'|" subprojects/libaudec/meson.build
ninja -C build
- name: Test
run: |
cd zrythm
meson test -C build || cat build/meson-logs/testlog.txt
- name: Install
run: |
cd zrythm
ninja -C build install