Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(verify): the second backend gets a Vulkan loader to find a driver with

yhhe83e757e4970
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cb7583caa..425b7c0ee 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -323,6 +323,24 @@ jobs:
# --no-build: the renderer bundle is already built two steps up.
run: node tools/verify-render.mjs --tier pr --no-build
+ # Dawn reaches a GPU-less runner through Vulkan, and needs a loader to reach
+ # any driver at all — which this job installed none of, so the WebGPU step
+ # removed in e5485f8a7 was asking Dawn to find an adapter with nothing to
+ # find. Same two packages the Linux desktop job has always used for the same
+ # reason. No adapter is named: the loader picks from what is installed, and
+ # the boot log says which it picked.
+ - name: Install the Vulkan loader and its software driver
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libvulkan1 mesa-vulkan-drivers
+
+ - name: Run headless verify scenes on the second backend
+ env:
+ ESTELLA_VERIFY_WEBGPU_ADAPTER: ''
+ run: |
+ ls -l /usr/share/vulkan/icd.d/ || true
+ xvfb-run -a node tools/verify-render.mjs --tier pr --backend webgpu --no-build
+
- name: Run MCP end-to-end
working-directory: desktop
env:
diff --git a/tools/verify-render.mjs b/tools/verify-render.mjs
index ccd105bd8..40b360386 100644
--- a/tools/verify-render.mjs
+++ b/tools/verify-render.mjs
@@ -70,7 +70,9 @@ const scenes = selected.map((s) => ({
...s.env,
...(typeof s.webgpu === 'object' ? s.webgpu : {}),
ESTELLA_VERIFY_BACKEND: 'webgpu',
- ESTELLA_VERIFY_WEBGPU_ADAPTER: 'swiftshader',
+ // Empty lets the Vulkan loader choose from the ICDs installed; a name it
+ // does not recognize is ignored in silence. The boot log says which it got.
+ ESTELLA_VERIFY_WEBGPU_ADAPTER: process.env.ESTELLA_VERIFY_WEBGPU_ADAPTER ?? 'swiftshader',
}
: s.env,
}));