Skip to content

feat(build): add macOS-hosted Linux cross devshells - #3219

Open
elezar wants to merge 3 commits into
mainfrom
codex/cross-linux-devshells
Open

feat(build): add macOS-hosted Linux cross devshells#3219
elezar wants to merge 3 commits into
mainfrom
codex/cross-linux-devshells

Conversation

@elezar

@elezar elezar commented Sep 8, 2026

Copy link
Copy Markdown
Member

Summary

Add Darwin-hosted Nix cross shells for building ARM64 Linux musl CLI and glibc 2.28 gateway artifacts with plain cargo build. The generated binaries were smoke-tested in an ARM64 Ubuntu guest VM.

Related Issue

Related to #3218. This PR was directly authorized; the issue is not marked state:accepted and is not closed automatically.

Changes

  • Added host-qualified crossShells.aarch64-darwin.aarch64-linux.{musl,gnu} outputs.
  • Added a shared Cargo/Zig cross-shell helper that routes build commands through cargo-zigbuild.
  • Added static ARM64 target Z3 for the default-feature GNU gateway shell.
  • Documented the cross-shell interface and guest-artifact behavior.

Testing

  • nix flake check --no-build
  • mise run pre-commit passes (unavailable: mise is not installed on this host)
  • Unit tests added/updated (Nix development-shell change)
  • ARM64 musl CLI build through crossShells.aarch64-darwin.aarch64-linux.musl
  • ARM64 GNU gateway build through crossShells.aarch64-darwin.aarch64-linux.gnu
  • ARM64 Ubuntu guest-VM smoke test: both binaries ran with --version
  • E2E tests added/updated (not applicable; no services were started)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant