fluidsynth/.azure-pipelines-mac.yml

28 lines
1 KiB
YAML
Raw Normal View History

2019-10-21 10:44:49 +00:00
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
jobs:
- job: macOS
pool:
vmImage: 'macOS-10.14'
# recommended by https://github.com/Homebrew/brew/issues/2491#issuecomment-294207661
2021-02-07 12:46:02 +00:00
# brew update || brew update
# brew upgrade $PACKAGES
2019-10-21 10:44:49 +00:00
steps:
- script: |
2021-02-07 12:46:02 +00:00
PACKAGES="glib gobject-introspection libsndfile pkg-config jack dbus-glib pulseaudio portaudio sdl2"
brew install $PACKAGES
2019-10-21 10:44:49 +00:00
displayName: 'Prerequisites'
- script: |
mkdir build && cd build
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
cmake -Werror=dev -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 ..
2021-02-07 12:46:02 +00:00
make -j`nproc`
2019-10-21 10:44:49 +00:00
displayName: 'Compile fluidsynth'
- script: |
cd build || exit -1
2021-02-07 12:46:02 +00:00
make -j`nproc` check || exit -1
2019-10-21 10:44:49 +00:00
displayName: 'Execute Unittests'