Repository navigation
CI: build Windows Vulkan/COM targets via Vulkan-Headers and add sccache - #439
Conversation
|
Tested 0554ba3 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass
This is a local build with the full Vulkan SDK, not the CI's header-only setup. It shows the CMake changes don't break the SDK path. No game files used. AI-assisted run (Claude Code). |
0554ba3 to
35321bd
Compare
35321bd to
8f3fc8b
Compare
|
Tested
AI-assisted testing. |
|
Thanks @kotorvr for verifying the full LunarG Vulkan SDK 1.4.363.0 + RTX 4090 validation path, and thanks @VictorJulianiR for the supply-chain review! Rebased onto
Verified live on fork CI:
Upstream CI is also running directly on this PR now. |
Depends on: #435
What and why
Part of #418 (step 8). Unlocks Windows compilation and CPU
ctestcoverage forVulkan::Headers-gated targets without installing the multi-GB LunarG Vulkan SDK, and addssccachecompiler caching to bothwindowsandlinux-gpu-toolsin.github/workflows/runtime.yml:runtime/CMakeLists.txt: adds a header-onlyVulkan::Headersfallback (find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS "$ENV{VULKAN_SDK}/Include" "$ENV{VULKAN_SDK}/include")) whenfind_package(Vulkan QUIET)does not find a full SDK, and gates the Vulkan/COM/test targets onif(TARGET Vulkan::Headers)instead ofif(Vulkan_FOUND). Full LunarG SDK and Linuxlibvulkan-devsetups work unchanged; missing headers still degrade gracefully.KhronosGroup/Vulkan-Headerstagvulkan-sdk-1.4.363.0viaactions/cache, setsVULKAN_SDK, and sets up Python 3.12 for deterministictools/gen_d3d12_stubs.pyexecution. This compilesgta6rt_d3d12_comandd3d12_uint_clear_testand runs all Vulkan/COM CPU tests in CI (ctest20/20 on GitHub-hostedwindows-latest).sccacheon Windows + Linux: installsmozilla-actions/sccache-action(v0.0.11) withSCCACHE_GHA_ENABLED=true, passes-DCMAKE_CXX_COMPILER_LAUNCHER=sccache, passes-DCMAKE_POLICY_DEFAULT_CMP0141=NEW -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embeddedon Windows (emitting-Z7so MSVC objects are cacheable), and printssccache --show-stats.Action SHA verification
actions/checkoutv7.0.13d3c42e5aac5ba805825da76410c181273ba90b1actions/setup-pythonv7.1.06d4fd22b20465ccc0f7354476588e8df7c9ca0e0ilammy/msvc-dev-cmdv1.13.00b201ec74fa43914dc39ae48a89fd1d8cb592756mozilla-actions/sccache-actionv0.0.11fc920bf0ec8de6ee65d409111f7ec508035751baactions/cachev6.1.055cc8345863c7cc4c66a329aec7e433d2d1c52a9AI-assisted contribution.
Tested
windows: 2m26s (cold cache),sccache80/80 cacheable (0non-cacheable),ctest20/20 passed in 1.46s.linux-gpu-tools: 45s (cold cache),sccache12/12 cacheable (0non-cacheable),ctest5/5 passed in 0.02s.KhronosGroup/Vulkan-Headersvulkan-sdk-1.4.363.0: 114/114 targets built,build.ninjaconfirmed-Z7(no/Zi), unsetVULKAN_SDKgracefully logsVulkan headers not found.jactionlintv2.6.0 (shellcheck0.11.0):--profile correctnessand--profile default .github/workflows/runtime.yml-> exit 0, 0 findings.Checklist
docs/design.md, with how it was confirmed. (N/A — CMake and CI workflow only)