chore: cache the TomBox console DLLs in CI instead of rebuilding them #208
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!208
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/208/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Exorion1er on GitHub · 2026-11-25 14:25 UTC · original
Exorion1er:claude/ci-tombox-cache-07d1b2→main· +17 −0 · 1 files · 3 commits · merged 2026-11-25 14:44 UTCWhy
In the
pytestjob, the "DLL console de TomBox" step takes ~2m45s on every run, even whenthe Rust cache from #201 restores a full match (run 45630781451:
full match: true, thenFinished release profile [optimized + debuginfo] in 2m 43s).Swatinem/rust-cache only caches dependency crates (
cache-workspace-crates: false). The 15crates compiled in that step are all TomBox workspace members (compat-common, d3d12_xs, xg_xs,
xmem…), so they are rebuilt every time. Enabling workspace-crate caching would not help:
cargo checks path crates by mtime, and a fresh checkout makes every source newer than the
cached artifacts.
What
Cache the 8 DLLs in
runtime/build/tombox(the only TomBox output the tests read) withactions/cache, keyed on the OS, the TomBox submodule commit, the rustc version andhashFiles('tools/build_tombox.py'). On a hit,tools/build_tombox.pyis skipped.A submodule bump, a new rustc or a script change gives a new key and a normal build.
Expected effect
About 160 s less per
pytestrun when the cache hits (the step was 166 s; restoring 8 DLLstakes a few seconds). The first run after merge, and any PR that bumps the submodule, still
builds once.
Verification
Measured on this PR: the first run (cache miss, 45633908884) built TomBox in 157 s and saved
the cache; the second (45635113253) restored it in 1 s, skipped the build, and the pytest job
went from 355 s to 213 s with all tests green.
🤖 Generated with Claude Code