Add CTest categories, shader & packaging validation, and GitHub Actions CI foundation - #8
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
unit,headless) and add helper targetsrender_test_unitandrender_test_headlessfor convenient local invocation via CMake/CTest.render_shaders/render_shader_check,RENDER_REQUIRE_SHADER_COMPILATIONtoggle, auto-discovery of a builtshaderctarget, and shader compilation logging toout/build/<preset>/logs/shader_compilation.log.render_package_stageandrender_package_validate, which verify expected binaries, shader outputs, and produce a portable archive (.tar.gzor.zip) while emittingout/build/<preset>/logs/package_validation.logfor debugging.linux-ci) andRENDER_BGFX_BUILD_TOOLSoption to allow CI to build bgfx tools when required, and wire the validation targets into the top-levelrender_validate_allumbrella target..github/workflows/pr-validation.ymlandmain-validation.yml) with a pragmatic matrix (Linux full lane runs shader+packaging, macOS/Windows run build+unit+headless), dependency caching, and artifact upload for Linux lanes.scripts/run_validations.sh/.ps1,docs/testing.md,docs/ci.md, anddocs/build.mdupdates that map local commands to CI behavior.Testing
tests/headless/headless_validation.cppsmoke executable, but no CTest cases were executed in CI as part of this change yet.cmake --preset linux-debug -DRENDER_ALLOW_FETCHCONTENT=ON, which failed in this environment because FetchContent attempted to clonehttps://github.com/libsdl-org/SDL.gitand the network fetch was blocked (CONNECT tunnel failed, response 403), so shader/tool bootstrapping and full configure did not complete.unittests viactest -L unit, headless smoke viactest -L headless, shader compilation viacmake --build --target render_shader_check, and packaging validation viacmake --build --target render_package_validate.Codex Task