fluidsynth/.azure/azure-pipelines-mac.yml

65 lines
1.8 KiB
YAML
Raw Normal View History

trigger:
paths:
include:
- '*'
exclude:
- '.azure/azure-pipelines-android.yml'
- '.azure/azure-pipelines-vcpkg.yml'
- '.azure/azure-pipelines-win.yml'
- '.circleci/config.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/sonarcloud.yml'
- '.cirrus.yml'
- 'README.md'
2019-10-21 10:44:49 +00:00
jobs:
- job: macOS
2021-09-07 20:10:29 +00:00
strategy:
matrix:
2022-01-14 16:30:54 +00:00
UnixLibs:
imageName: 'macos-11'
CMakeFlags: '-Denable-framework=0'
2021-09-07 20:10:29 +00:00
10_15:
imageName: 'macOS-10.15'
2022-01-14 16:30:54 +00:00
CMakeFlags: ''
2021-09-07 20:10:29 +00:00
11_0:
imageName: 'macos-11'
2022-01-14 16:30:54 +00:00
CMakeFlags: ''
2021-09-07 20:10:29 +00:00
2019-10-21 10:44:49 +00:00
pool:
2021-09-07 20:10:29 +00:00
vmImage: $(imageName)
# 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-09-07 20:10:29 +00:00
set -ex
PACKAGES="glib gobject-introspection libsndfile pkg-config jack dbus-glib pulseaudio portaudio sdl2 libomp"
2021-02-07 12:46:02 +00:00
brew install $PACKAGES
2019-10-21 10:44:49 +00:00
displayName: 'Prerequisites'
- script: |
2021-09-07 20:10:29 +00:00
set -ex
2019-10-21 10:44:49 +00:00
mkdir build && cd build
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
2022-01-14 16:31:13 +00:00
cmake -Werror=dev $(CMakeFlags) -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 ..
2021-09-07 20:10:29 +00:00
make -j3
2019-10-21 10:44:49 +00:00
displayName: 'Compile fluidsynth'
- script: |
2021-09-07 20:10:29 +00:00
set -ex
2019-10-21 10:44:49 +00:00
cd build || exit -1
2021-09-07 20:10:29 +00:00
make -j3 check || exit -1
2019-10-21 10:44:49 +00:00
displayName: 'Execute Unittests'
2022-01-14 16:31:13 +00:00
- script: |
set -ex
cd build
sudo make install
rm -f install_manifest.txt
displayName: 'Install fluidsynth to default location'
- script: |
set -ex
cd build
cmake -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) ..
make install
displayName: 'Install fluidsynth to artifact dir'