-
Notifications
You must be signed in to change notification settings - Fork 58
215 lines (197 loc) · 7.57 KB
/
server.parent.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
name: "server all (parent)"
on:
# Triggered manually.
workflow_dispatch:
inputs:
jobDistros:
description: "jobDistros: List of Ubuntu codenames to build for"
required: true
# There is no `list` type, so use a raw JSON array and `fromJSON()`.
# Example: '["xenial", "bionic", "focal"]'
type: "string"
default: '["focal"]'
jobGitName:
description: "jobGitName: Non-default git branch or tag that should be checked out, if it exists"
required: false
type: "string"
default: ""
jobGitNameFallback:
description: "jobGitNameFallback: Non-default git branch or tag that should be checked out, if `jobGitName` does not exist"
required: false
type: "string"
default: ""
jobRelease:
description: "jobRelease: Enable to build release versions; disable for development builds"
required: false
type: "boolean"
default: false
jobOnlyKurento:
description: "jobOnlyKurento: Enable to only build Kurento; disable to also build forks"
required: false
type: "boolean"
default: true
runnerGroup:
description: "runnerGroup: Set of runners where the workflow jobs should be run"
required: false
type: "string"
default: ""
jobs:
libsrtp:
if: ${{ ! inputs.jobOnlyKurento }}
uses: "Kurento/libsrtp/.github/workflows/[email protected]"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "7.0.0"
jobGitNameFallback: ""
jobRelease: ${{ inputs.jobRelease }}
openh264:
if: ${{ ! inputs.jobOnlyKurento }}
uses: "Kurento/openh264/.github/workflows/[email protected]"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "7.0.0"
jobGitNameFallback: ""
jobRelease: ${{ inputs.jobRelease }}
openh264-gst-plugin:
if: ${{ ! inputs.jobOnlyKurento }}
needs: ["openh264"]
uses: "Kurento/openh264-gst-plugin/.github/workflows/kurento-buildpackage.reusable.yaml@master"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "master"
jobGitNameFallback: ""
jobRelease: ${{ inputs.jobRelease }}
gst-plugins-good:
if: ${{ ! inputs.jobOnlyKurento }}
uses: "Kurento/gst-plugins-good/.github/workflows/[email protected]"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "7.0.0"
jobGitNameFallback: ""
jobRelease: ${{ inputs.jobRelease }}
libnice:
if: ${{ ! inputs.jobOnlyKurento }}
uses: "Kurento/libnice/.github/workflows/[email protected]"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "7.0.0"
jobGitNameFallback: ""
jobRelease: ${{ inputs.jobRelease }}
module-creator:
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/module-creator/"
copyArtifacts: false
cmake-utils:
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/cmake-utils/"
copyArtifacts: false
jsonrpc:
needs: ["cmake-utils"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/jsonrpc/"
module-core:
needs: ["module-creator", "cmake-utils", "jsonrpc"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/module-core/"
module-elements:
needs: ["openh264-gst-plugin", "libnice", "module-core"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/module-elements/"
module-filters:
needs: ["module-elements"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/module-filters/"
media-server:
needs: ["libsrtp", "gst-plugins-good", "module-filters"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/media-server/"
module-chroma:
needs: ["module-filters"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/module-examples/chroma/"
module-datachannelexample:
needs: ["module-filters"]
uses: "./.github/workflows/server-buildpackage.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobGitName: "${{ inputs.jobGitName }}"
jobGitNameFallback: "${{ inputs.jobGitNameFallback }}"
jobRelease: ${{ inputs.jobRelease }}
runnerGroup: ${{ inputs.runnerGroup }}
directory: "server/module-examples/datachannelexample/"
deploy-deb:
needs: ["media-server", "module-chroma", "module-datachannelexample"]
uses: "./.github/workflows/server-deploy-debian.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobRelease: ${{ inputs.jobRelease }}
jobDeployName: "${{ inputs.jobGitName }}"
runnerGroup: ${{ inputs.runnerGroup }}
secrets:
APTLY_SSH_PRIVATE_KEY: "${{ secrets.APTLY_SSH_PRIVATE_KEY }}"
deploy-docker:
needs: ["deploy-deb"]
uses: "./.github/workflows/server-deploy-docker.child.yaml"
with:
jobDistros: "${{ inputs.jobDistros }}"
jobRelease: ${{ inputs.jobRelease }}
jobDeployName: "${{ inputs.jobGitName }}"
runnerGroup: ${{ inputs.runnerGroup }}
buildAsan: true
secrets:
KURENTO_DOCKERHUB_USERNAME: "${{ secrets.KURENTO_DOCKERHUB_USERNAME }}"
KURENTO_DOCKERHUB_TOKEN: "${{ secrets.KURENTO_DOCKERHUB_TOKEN }}"
# TODO: Move script to use Kurento ci-scripts/ and not openvidu ci-scripts/
# deploy-aws:
# needs: ["media-server"]
# uses: "./.github/workflows/server-deploy-aws.child.yaml"
# with:
# jobRelease: ${{ inputs.jobRelease }}