From 765e4f37876b69ff3ba33e9f850e50166d2a0cb8 Mon Sep 17 00:00:00 2001 From: "kathrin.resek" Date: Fri, 17 Jan 2025 08:32:43 +0100 Subject: [PATCH] adapt build file --- .github/workflows/build-linux.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-linux.yaml b/.github/workflows/build-linux.yaml index 7f556539..8c83bf3c 100644 --- a/.github/workflows/build-linux.yaml +++ b/.github/workflows/build-linux.yaml @@ -21,12 +21,16 @@ jobs: cache: maven - name: Install required packages run: sudo apt-get update && sudo apt-get install -y xvfb libgtk-3-0 + - name: Start Xvfb + run: | + Xvfb :99 -screen 0 1024x768x24 & + echo "Xvfb started" + - name: Set DISPLAY environment variable + run: echo "DISPLAY=:99" >> $GITHUB_ENV - name: Build with Maven run: mvn package clean install -Plinux -Pci-build -Dno-native-profile -Dmaven.test.skip=true - name: Run headless test - uses: coactions/setup-xvfb@v1 - with: - run: mvn -X test -Plinux -Pci-build -Dno-native-profile + run: mvn -X test -Plinux -Pci-build -Dno-native-profile - name: Describe current commit run: echo "commit_sha=${GITHUB_SHA::7}" >> $GITHUB_ENV - name: Remove Previous Build Artifacts