ci: install GUI system libraries on intel-clean-room runners#1
Merged
Conversation
The intel-clean-room runners are sandboxed and lack X11 / GTK4 / FLTK dev headers. fltk-sys's bundled cfltk C++ build needs Xlib's `Window` type and Mesa GL headers at compile time, which surfaces as `'fl_xid' was not declared` and `'Window' does not name a type` errors. Add a pre-build step to clippy / test / contracts / coverage jobs that installs the package set already documented in README.md for FLTK and GTK4. fmt and deny don't compile, so they stay unchanged. Subsequent runs on the same runner are no-ops once apt has the packages. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Multiple jobs land on the same intel-clean-room host and contend on /var/lib/apt/lists/lock when they run apt-get update in parallel. Switch each install step to `apt-get -o DPkg::Lock::Timeout=300` so apt waits up to 5 minutes for the lock instead of failing. - Add assets/hero.svg + hero.png and reference it from README so the landing page actually shows what the five framework demos look like. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
DPkg::Lock::Timeout only covers /var/lib/dpkg/lock-frontend, not /var/lib/apt/lists/lock — and the latter is what concurrent intel-clean-room jobs collide on. Wrap apt-get update+install in a 30-attempt retry loop with 10s gaps so the second-arriving jobs wait out the first job's apt-get update instead of failing fast. Pull the install into .github/actions/setup-deps so each consumer job is one line (`uses: ./.github/actions/setup-deps`) instead of repeating the package list four times. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The 8 intel-clean-room runners share /home/noah/data/actions-runner/_work/
on the host filesystem. When two jobs from the same workflow (e.g. clippy
and test, or contracts and deny) land on the same runner, they trample
each other's target/debug/deps/, producing rustc "couldn't create a temp
dir" errors and fltk-sys cmake "opening dependency file ... No such file
or directory" failures.
Pin each compile job's target directory to ${{ runner.temp }} (auto-
isolated per job, auto-cleaned by the runner) so concurrent jobs on the
same host stay out of each other's way. fmt and deny don't compile, so
they don't need the override.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
b7c6644 to
e51e238
Compare
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.
Summary
'fl_xid' was not declaredand'Window' does not name a typeapt-get installstep to clippy/test/contracts/coverage jobs that installs the package set documented in README.mdTest plan
🤖 Generated with Claude Code