Skip to content

Commit 7490e49

Browse files
working in CI
1 parent 328419a commit 7490e49

2 files changed

Lines changed: 66 additions & 15 deletions

File tree

‎.github/workflows/tests.yml‎

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ env:
132132
VCPKG_DEFAULT_TRIPLET: x64-windows-static-md
133133
VCPKG_DEFAULT_HOST_TRIPLET: x64-windows-static-md
134134
VCPKG_TARGET_TRIPLET: x64-windows-static-md
135+
# The Windows GStreamer bundle is pinned and checksum-verified below. Linux
136+
# and macOS use their platform package managers.
137+
GSTREAMER_WINDOWS_VERSION: "1.28.5"
138+
GSTREAMER_WINDOWS_SHA256: "51ee5eaec33008e8409d8cf6f6884457f22aa3bd515f8856f993a3eaab903530"
135139

136140
jobs:
137141
test:
@@ -203,6 +207,34 @@ jobs:
203207
with:
204208
vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT }}
205209

210+
- name: Install GStreamer (Windows)
211+
if: runner.os == 'Windows'
212+
shell: pwsh
213+
run: |
214+
$installer = Join-Path $env:RUNNER_TEMP "gstreamer-installer.exe"
215+
$installDir = Join-Path $env:RUNNER_TEMP "gstreamer"
216+
$uri = "https://gstreamer.freedesktop.org/data/pkg/windows/$env:GSTREAMER_WINDOWS_VERSION/msvc/gstreamer-1.0-msvc-x86_64-$env:GSTREAMER_WINDOWS_VERSION.exe"
217+
218+
Invoke-WebRequest -Uri $uri -OutFile $installer
219+
$actualHash = (Get-FileHash -Algorithm SHA256 $installer).Hash.ToLowerInvariant()
220+
if ($actualHash -ne $env:GSTREAMER_WINDOWS_SHA256) {
221+
throw "GStreamer installer SHA-256 mismatch: expected $env:GSTREAMER_WINDOWS_SHA256, got $actualHash"
222+
}
223+
224+
$process = Start-Process -FilePath $installer -ArgumentList @(
225+
"/TYPE=devel",
226+
"/DIR=$installDir",
227+
"/CURRENTUSER",
228+
"/VERYSILENT",
229+
"/NORESTART"
230+
) -Wait -PassThru
231+
if ($process.ExitCode -ne 0) {
232+
throw "GStreamer installer failed with exit code $($process.ExitCode)"
233+
}
234+
235+
"$installDir\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
236+
"PKG_CONFIG_PATH=$installDir\lib\pkgconfig" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
237+
206238
# ---------- OS-specific deps ----------
207239
- name: Install deps (Ubuntu)
208240
if: runner.os == 'Linux'
@@ -221,14 +253,18 @@ jobs:
221253
libabsl-dev \
222254
libcurl4-openssl-dev \
223255
libwayland-dev libdecor-0-dev \
256+
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
257+
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
258+
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
259+
gstreamer1.0-libav \
224260
gdb jq
225261
226262
- name: Install deps (macOS)
227263
if: runner.os == 'macOS'
228264
run: |
229265
set -eux
230266
brew update
231-
brew install cmake ninja protobuf abseil
267+
brew install cmake ninja protobuf abseil gstreamer
232268
233269
# ---------- Rust toolchain ----------
234270
- name: Install Rust (stable)
@@ -500,7 +536,11 @@ jobs:
500536
libprotobuf-dev protobuf-compiler \
501537
libabsl-dev \
502538
libcurl4-openssl-dev \
503-
libwayland-dev libdecor-0-dev
539+
libwayland-dev libdecor-0-dev \
540+
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
541+
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
542+
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
543+
gstreamer1.0-libav
504544
pip install --break-system-packages gcovr
505545
506546
# ---------- Rust toolchain ----------
@@ -613,4 +653,3 @@ jobs:
613653
name: coverage-report
614654
path: coverage-html/
615655
retention-days: 14
616-

‎CMakePresets.json‎

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@
214214
"cacheVariables": {
215215
"CMAKE_BUILD_TYPE": "Release",
216216
"LIVEKIT_BUILD_EXAMPLES": "ON",
217-
"LIVEKIT_BUILD_TESTS": "ON"
217+
"LIVEKIT_BUILD_TESTS": "ON",
218+
"LIVEKIT_ENABLE_CAPTURE": "ON"
218219
}
219220
},
220221
{
@@ -226,7 +227,8 @@
226227
"cacheVariables": {
227228
"CMAKE_BUILD_TYPE": "Debug",
228229
"LIVEKIT_BUILD_EXAMPLES": "ON",
229-
"LIVEKIT_BUILD_TESTS": "ON"
230+
"LIVEKIT_BUILD_TESTS": "ON",
231+
"LIVEKIT_ENABLE_CAPTURE": "ON"
230232
}
231233
},
232234
{
@@ -238,7 +240,8 @@
238240
"cacheVariables": {
239241
"CMAKE_BUILD_TYPE": "Release",
240242
"LIVEKIT_BUILD_EXAMPLES": "OFF",
241-
"LIVEKIT_BUILD_TESTS": "ON"
243+
"LIVEKIT_BUILD_TESTS": "ON",
244+
"LIVEKIT_ENABLE_CAPTURE": "ON"
242245
}
243246
},
244247
{
@@ -250,7 +253,8 @@
250253
"cacheVariables": {
251254
"CMAKE_BUILD_TYPE": "Debug",
252255
"LIVEKIT_BUILD_EXAMPLES": "OFF",
253-
"LIVEKIT_BUILD_TESTS": "ON"
256+
"LIVEKIT_BUILD_TESTS": "ON",
257+
"LIVEKIT_ENABLE_CAPTURE": "ON"
254258
}
255259
},
256260
{
@@ -262,7 +266,8 @@
262266
"cacheVariables": {
263267
"CMAKE_BUILD_TYPE": "Release",
264268
"LIVEKIT_BUILD_EXAMPLES": "ON",
265-
"LIVEKIT_BUILD_TESTS": "ON"
269+
"LIVEKIT_BUILD_TESTS": "ON",
270+
"LIVEKIT_ENABLE_CAPTURE": "ON"
266271
}
267272
},
268273
{
@@ -274,7 +279,8 @@
274279
"cacheVariables": {
275280
"CMAKE_BUILD_TYPE": "Debug",
276281
"LIVEKIT_BUILD_EXAMPLES": "ON",
277-
"LIVEKIT_BUILD_TESTS": "ON"
282+
"LIVEKIT_BUILD_TESTS": "ON",
283+
"LIVEKIT_ENABLE_CAPTURE": "ON"
278284
}
279285
},
280286
{
@@ -286,7 +292,8 @@
286292
"cacheVariables": {
287293
"CMAKE_BUILD_TYPE": "Release",
288294
"LIVEKIT_BUILD_EXAMPLES": "OFF",
289-
"LIVEKIT_BUILD_TESTS": "ON"
295+
"LIVEKIT_BUILD_TESTS": "ON",
296+
"LIVEKIT_ENABLE_CAPTURE": "ON"
290297
}
291298
},
292299
{
@@ -298,7 +305,8 @@
298305
"cacheVariables": {
299306
"CMAKE_BUILD_TYPE": "Debug",
300307
"LIVEKIT_BUILD_EXAMPLES": "OFF",
301-
"LIVEKIT_BUILD_TESTS": "ON"
308+
"LIVEKIT_BUILD_TESTS": "ON",
309+
"LIVEKIT_ENABLE_CAPTURE": "ON"
302310
}
303311
},
304312
{
@@ -310,7 +318,8 @@
310318
"cacheVariables": {
311319
"CMAKE_BUILD_TYPE": "Release",
312320
"LIVEKIT_BUILD_EXAMPLES": "ON",
313-
"LIVEKIT_BUILD_TESTS": "ON"
321+
"LIVEKIT_BUILD_TESTS": "ON",
322+
"LIVEKIT_ENABLE_CAPTURE": "ON"
314323
}
315324
},
316325
{
@@ -322,7 +331,8 @@
322331
"cacheVariables": {
323332
"CMAKE_BUILD_TYPE": "Debug",
324333
"LIVEKIT_BUILD_EXAMPLES": "ON",
325-
"LIVEKIT_BUILD_TESTS": "ON"
334+
"LIVEKIT_BUILD_TESTS": "ON",
335+
"LIVEKIT_ENABLE_CAPTURE": "ON"
326336
}
327337
},
328338
{
@@ -334,7 +344,8 @@
334344
"cacheVariables": {
335345
"CMAKE_BUILD_TYPE": "Release",
336346
"LIVEKIT_BUILD_EXAMPLES": "OFF",
337-
"LIVEKIT_BUILD_TESTS": "ON"
347+
"LIVEKIT_BUILD_TESTS": "ON",
348+
"LIVEKIT_ENABLE_CAPTURE": "ON"
338349
}
339350
},
340351
{
@@ -346,7 +357,8 @@
346357
"cacheVariables": {
347358
"CMAKE_BUILD_TYPE": "Debug",
348359
"LIVEKIT_BUILD_EXAMPLES": "OFF",
349-
"LIVEKIT_BUILD_TESTS": "ON"
360+
"LIVEKIT_BUILD_TESTS": "ON",
361+
"LIVEKIT_ENABLE_CAPTURE": "ON"
350362
}
351363
}
352364
],

0 commit comments

Comments
 (0)