Skip to content

Commit 02e4ebc

Browse files
jcelerierclaude
andcommitted
ci: X11 headers + xvfb on the Ubuntu lanes so the editor tests run
The end-to-end editor tests embed real windows; without X11 dev headers they are skipped at configure time, and without a display they cannot run. Install libx11/xrandr/xext/xcursor + xvfb and run the test steps under xvfb-run on Linux. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent e03f538 commit 02e4ebc

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/build_cmake.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
chmod +x ./llvm.sh ; \
4646
sudo ./llvm.sh 22 ; \
4747
sudo apt update ; \
48-
sudo apt install ninja-build clang-22 lld-22 libc++-22-dev libc++abi-22-dev",
48+
sudo apt install ninja-build clang-22 lld-22 libc++-22-dev libc++abi-22-dev \
49+
libx11-dev libxrandr-dev libxext-dev libxcursor-dev xvfb",
4950
sdk: "/opt/ossia-sdk-x86_64",
5051
pre_build: ""
5152
}
@@ -61,7 +62,8 @@ jobs:
6162
sudo apt install lsb-release wget software-properties-common ; \
6263
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test ; \
6364
sudo apt update ; \
64-
sudo apt install ninja-build gcc-16 g++-16 libgstreamer1.0-dev",
65+
sudo apt install ninja-build gcc-16 g++-16 libgstreamer1.0-dev \
66+
libx11-dev libxrandr-dev libxext-dev libxcursor-dev xvfb",
6567
sdk: "/opt/ossia-sdk-x86_64",
6668
pre_build: ""
6769
}
@@ -164,7 +166,12 @@ jobs:
164166
export PATH="${{ matrix.config.path }}:$PATH"
165167
fi
166168
167-
cmake --build . --target test
169+
# The editor tests open real windows: give them an X server.
170+
if [[ "$RUNNER_OS" == "Linux" ]]; then
171+
xvfb-run -a -s "-screen 0 1280x960x24" cmake --build . --target test
172+
else
173+
cmake --build . --target test
174+
fi
168175
169176
- name: Build release
170177
shell: bash
@@ -205,4 +212,9 @@ jobs:
205212
export PATH="${{ matrix.config.path }}:$PATH"
206213
fi
207214
208-
cmake --build . --target test
215+
# The editor tests open real windows: give them an X server.
216+
if [[ "$RUNNER_OS" == "Linux" ]]; then
217+
xvfb-run -a -s "-screen 0 1280x960x24" cmake --build . --target test
218+
else
219+
cmake --build . --target test
220+
fi

0 commit comments

Comments
 (0)