ci: install xvfb before Gradle build on self-hosted runners
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (push) Failing after 3h0m4s

Self-hosted Gitea Actions runners lack xvfb by default, so xvfb-run
fails with exit 127. Install it in the Java CI workflow before build.
This commit is contained in:
浩 刘 committed 2026-11-07 19:02:04 +00:00
1 parent 5e2da98061
commit a4fff896ea
1 file changed
+4
+4
View File
@@ -23,6 +23,10 @@ jobs:
uses: gradle/actions/setup-gradle@v5
with:
cache-cleanup: never
- name: Install Xvfb
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Build with Gradle
run: xvfb-run --auto-servernum ./gradlew build --no-daemon --parallel
env: