-
Notifications
You must be signed in to change notification settings - Fork 0
167 lines (152 loc) · 5.14 KB
/
plugin.yaml
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: Plugin Checks And Builds
on:
# run for all pull requests
# Run for all commits (e.g. on feature branches)
push:
paths:
- 'dsp/**'
- 'plugin/**'
- 'lib/**'
- '.github/workflows/**'
pull_request:
paths:
- 'dsp/**'
- 'plugin/**'
- 'lib/**'
- '.github/workflows/**'
jobs:
###############################################################################
# builds the plugin on windows
testBuildWindows:
runs-on: windows-latest
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.x'
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure
run: |
cmake.exe -G "Visual Studio 16 2019" -A x64 -B plugin/build -S plugin
- name: Build
run: |
cmake --build plugin/build --config Release
- name: Run Tests
run: |
plugin/build/Release/TapeLooperPlugin_Gtest.exe --gtest_output=xml:TestResults\gtestResults_windows.xml
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
name: TestResults
path: TestResults/**
- name: Upload executable
uses: actions/upload-artifact@v2
with:
name: TapeLooperPlugin_Windows
path: |
plugin\build\TapeLooperPlugin_artefacts\Release\VST3\Tape Looper Plugin.vst3\Contents\x86_64-win\Tape Looper Plugin.vst3
plugin\build\TapeLooperPlugin_artefacts\Release\Standalone\Tape Looper Plugin.exe
plugin/build/Release/TapeLooperPlugin_Gtest.exe
TestResults\gtestResults_windows.xml
###############################################################################
# builds the plugin on macos
testBuildMacOS:
runs-on: macos-latest
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.x'
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure
run: |
cmake -G "Xcode" -B plugin/build -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -S plugin
- name: Build
run: |
cmake --build plugin/build --config Release
- name: Run Tests
run: |
plugin/build/Release/TapeLooperPlugin_Gtest --gtest_output=xml:TestResults/gtestResults_macos.xml
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
name: TestResults
path: TestResults/**
- name: Upload executable
uses: actions/upload-artifact@v2
with:
name: TapeLooperPlugin_MacOS
path: |
plugin/build/TapeLooperPlugin_artefacts/Release/VST3/Tape Looper Plugin.vst3/**
plugin/build/TapeLooperPlugin_artefacts/Release/Standalone/Tape Looper Plugin.app/**
plugin/build/Release/TapeLooperPlugin_Gtest
TestResults/gtestResults_macos.xml
###############################################################################
# builds the plugin on ubuntu
testBuildUbuntu:
runs-on: ubuntu-latest
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.x'
- name: Setup dependencies
run: |
sudo apt-get update
sudo apt-get -y install g++ libfreetype6-dev libx11-dev libxinerama-dev libxrandr-dev libxcursor-dev mesa-common-dev libasound2-dev freeglut3-dev libxcomposite-dev
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure
run: |
cmake -G "Unix Makefiles" -B plugin/build -S plugin
- name: Build
run: |
cmake --build plugin/build --config Release
- name: Run Tests
run: |
plugin/build/TapeLooperPlugin_Gtest --gtest_output=xml:TestResults/gtestResults_ubuntu.xml
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
name: TestResults
path: TestResults/**
- name: Upload executable
uses: actions/upload-artifact@v2
with:
name: TapeLooperPlugin_Linux
path: |
plugin/build/TapeLooperPlugin_artefacts/VST3/Tape Looper Plugin.vst3
plugin/build/TapeLooperPlugin_artefacts/Standalone/Tape Looper Plugin
plugin/build/TapeLooperPlugin_Gtest
TestResults/gtestResults_ubuntu.xml
###############################################################################
# uploads test results from the previous jobs
publishTestResults:
name: "Publish Unit Tests Results"
needs: [testBuildUbuntu, testBuildMacOS, testBuildWindows]
runs-on: ubuntu-latest
# the dependency jobs might be skipped, we don't need to run this job then
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: TestResults
path: TestResults
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: TestResults/**/*.xml
github_token: ${{ secrets.GITHUB_TOKEN }}