From 86aff80f1c4ebee2eecfae7035379e17f2444389 Mon Sep 17 00:00:00 2001 From: Besmir Beqiri Date: Thu, 17 Oct 2024 21:28:26 +0200 Subject: [PATCH] Install Media Features for Windows only and force JavaFX to use WMF backend --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79a0d350..345b9487 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,19 @@ jobs: pulseaudio --start --exit-idle-time=-1 pacmd load-module module-null-sink sink_name=DummyOutput + - name: Install Media Features (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + Enable-WindowsOptionalFeature -Online -FeatureName MediaPlayback -All + Enable-WindowsOptionalFeature -Online -FeatureName MediaFoundation -All + + - name: Set JavaFX Media Backend to WMF (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $env:JDK_JAVA_OPTIONS = "-Djfxmedia.platforms=Windows" + - name: Compile run: | ./gradlew jar