forked from surge-synthesizer/sst-filters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
122 lines (97 loc) · 3.24 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Build dexed with JUCE buidls
trigger:
- main
pr:
- main
jobs:
- job: Test
condition: eq(variables['Build.Reason'], 'PullRequest')
strategy:
matrix:
mac:
imageName: 'macos-10.15'
isMac: True
win:
imageName: 'windows-2019'
isWindows: True
lin:
imageName: 'ubuntu-20.04'
isLinux: True
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 1
- bash: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
./build/test-binary/sst-filters-tests
displayName: Run tests with cmake
- job: Examples
condition: eq(variables['Build.Reason'], 'PullRequest')
strategy:
matrix:
mac:
imageName: 'macos-10.15'
isMac: True
win:
imageName: 'windows-2019'
isWindows: True
lin:
imageName: 'ubuntu-20.04'
isLinux: True
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 1
- bash: |
sudo apt-get update
sudo apt install ninja-build libasound2-dev libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libfreetype6-dev libglu1-mesa-dev libjack-jackd2-dev
condition: variables.isLinux
displayName: Install Linux dependencies
- bash: cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DSST_FILTERS_BUILD_EXAMPLES=ON
displayName: Run cmake configure
- bash: cmake --build build --config Release --target filter_plot_tool
displayName: Build filter_plot_tool
- bash: cmake --build build --config Release --target FiltersPlugin_VST3
displayName: Build filters_example_plugin
- job: MacARM
condition: eq(variables['Build.Reason'], 'PullRequest')
pool:
vmImage: 'macos-10.15'
steps:
- checkout: self
fetchDepth: 1
- bash: cmake -Bbuild -GXcode -DSST_FILTERS_BUILD_TESTS=ON -D\"CMAKE_OSX_ARCHITECTURES=arm64\"
displayName: Run cmake configure
- bash: cmake --build build --config Debug --parallel --target sst-filters-tests | xcpretty
displayName: Build tests
- job: Doxygenate
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
pool:
vmImage: 'ubuntu-20.04'
steps:
- checkout: self
fetchDepth: 1
- task: DownloadSecureFile@1
inputs:
secureFile: sru-token.txt
- bash: |
sudo apt-get install doxygen graphviz
doxygen doxygen/Doxyfile
HASH=`git rev-parse --short HEAD`
TOK=`cat $AGENT_TEMPDIRECTORY/sru-token.txt`
git clone https://surge-rackupdater:${TOK}@github.com/surge-synthesizer/sst-docs
git config --global user.email "[email protected]"
git config --global user.name "surge-rackupdater"
mkdir -p sst-docs/docs/sst-filters
pushd doxy-out
tar cf - . | (cd ../sst-docs/docs/sst-filters && tar xf -)
popd
pushd sst-docs
git add docs
git status
git commit -m "Update sst-filters docs at ${HASH}"
git push origin main
displayName: "Make Doxygen and Commit it"