Build and smoke-test the firmware simulator in CI #3
No reviewers
Labels
No labels
accessibility
approved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
audrow/alarm-clock-m5cores3!3
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/wizardly-gates-q0o1df"
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?
Adds a
simulatorjob to CI (GitHub and the identical Forgejo workflow). It keepssim/clock.wasm, the firmware running on the 3D viewer's touchscreen, in step withsrc/main.cpp.The job
pip install ziglang==0.16.0.python3 sim/build.py). Ifmain.cppstarts using an M5Unified call the shim doesn't cover, this fails and names the call.sim/clock.wasmmatches the source. A firmware change without a rebuilt simulator fails here, with a message saying what to run.node sim/smoke_test.jsat 616 × 284, 600 × 450 and 320 × 240. For each size it checks:Making the build reproducible
Step 3 needs the same source to always produce the same bytes. It didn't:
main.cppstamps a blank RTC with__DATE__/__TIME__, and that stamp was compiled in. The earlier "byte-identical" check only passed because Zig reused its cache.build.pynow setsSOURCE_DATE_EPOCHto pin the stamp. The simulator's RTC always has the time, so the stamp is never used there.clock.wasmis rebuilt with it.Also in
build.py: on a cold cache, Zig compiles its own libc++ and prints thousands of warning lines. The build now shows only warnings from our own files, and the full log only on failure.Verified locally
pip installinto the system Python (the CI path).tapping the gear didn't show "Sound".M5.Display.setRotation(1)fails the build withno member named 'setRotation' in 'SimDisplay'.🤖 Generated with Claude Code
https://claude.ai/code/session_01CL9u8wcccZXQeAVwboNhNa
Generated by Claude Code