Skip to content

DEVOPS-3987 ci: consolidate all arch builds into a single cross-compile job - #173

Open
rc-infra-pilot[bot] wants to merge 7 commits into
masterfrom
single-build-job-cross-compile
Open

DEVOPS-3987 ci: consolidate all arch builds into a single cross-compile job#173
rc-infra-pilot[bot] wants to merge 7 commits into
masterfrom
single-build-job-cross-compile

Conversation

@rc-infra-pilot

Copy link
Copy Markdown
Contributor

Summary

Replaces the two separate build jobs (build on macos-latest + build-linux-arm64 on ubuntu-24.04-arm) with a single build job on ubuntu-24.04 using Go's native cross-compilation.

How it works

Each platform target is a separate step that:

  1. Downloads the platform-specific tsh binary (darwin-arm64 / linux-amd64 / linux-arm64)
  2. Computes its MD5 and embeds it via -ldflags
  3. Cross-compiles via GOOS/GOARCH env vars — no emulation needed

Targets

  • bin/ridectl.macosGOOS=darwin GOARCH=arm64
  • bin/ridectl.linuxGOOS=linux GOARCH=amd64
  • bin/ridectl.linux.arm64GOOS=linux GOARCH=arm64

Benefits

  • Single runner instead of 2 (saves macos-latest minutes which are billed at 10x)
  • No ARM runner dependency
  • All 3 release zips produced in one job

@vivekjainx86 vivekjainx86 changed the title ci: consolidate all arch builds into a single cross-compile job DEVOPS-3987 ci: consolidate all arch builds into a single cross-compile job Aug 25, 2026
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