ci: install xvfb before Gradle build on self-hosted runners
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:
1 parent
5e2da98061
commit
a4fff896ea
1 file changed
+4
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user