ci(release): scope cargo build to the 4 shipped binaries #19
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_lib_rhai!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik_home212_lib_rhai_scope_build"
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?
Refs lhumina_code/home#212
Fix-forward on PRs #14 / #15 / #17 — v0.1.0-rc3 build-linux failed at 2m43 on
libusb1-sysC compile (linux/magic.h: No such file or directory). Run: https://forge.ourworld.tf/lhumina_code/hero_lib_rhai/actions/runs/78Root cause
build_binaries()fromscripts/build_lib.shcallscargo buildwithout-por--workspace. In this virtual workspace that builds all members — includingcrates/gpu_agent, which pullspci-info→libusb1-sys→ needs linux kernel headers the runner image doesn't ship.We don't publish
gpu_agentas a binary in this release. The 4 binaries we ship are listed inbuildenv.sh:Fix
Replace
build_binaries()with an explicitcargo build -p ...for just those four packages.verify_binaries+compress_binariesfrom the helper still run afterward, so UPX compression and BIN_DIR semantics are preserved. Notecrates/hero_do's[package].nameisherolib_do(binary namehero_dois set via[[bin]]) — that's why-p herolib_dois the correct package flag.Alternative considered: install
linux-libc-devon the runner. Rejected — masks the real issue (we shouldn't be buildinggpu_agentfor a release that doesn't ship it) and adds a dep that affects every workspace touching the helper.After merge
Tag
v0.1.0-rc4. Expected: 4 release assets, allx86_64-unknown-linux-musl.Signed-off-by: mik-tf
v0.1.0-rc3 build-linux failed at 2m43 on `libusb1-sys` C compile — `linux/magic.h: No such file or directory`. The runner image (ghcr.io/despiegk/builder:latest) doesn't ship kernel headers, and `apt-get install linux-libc-dev` would only fix the symptom. Root cause: `build_binaries()` from `scripts/build_lib.sh` calls `cargo build` with no -p / --workspace flag. In a virtual workspace that builds *all* members. hero_lib_rhai's workspace includes `crates/gpu_agent`, which pulls `pci-info` → `libusb1-sys` → needs linux kernel headers we don't have at build time. We don't ship gpu_agent as a binary in this release. Scoping the cargo build to just the four packages we publish (herolib_do + hero_runner_rhai{,_server,_ui}) sidesteps the libusb dep entirely. verify_binaries + compress_binaries from the helper still run after the explicit cargo build, so UPX compression and BIN_DIR semantics are preserved. Refs lhumina_code/home#212 Signed-off-by: mik-tf