Design a release workflow for a CLI tool that publishes binaries for Linux, macOS and Windows.
IntermediateScenarioRunners, ARC, Monorepos & Releases
Answer
Situation read → Cross-compile, checksum, sign, publish.
What I'd do →
- Trigger on tags
v*.*.*. - Matrix build (or GoReleaser in one job for Go), upload artifacts per platform.
- Fan-in job downloads with
merge-multiple: true, generateschecksums.txt, attests provenance, and runsgh release create "$GITHUB_REF_NAME" dist/* --generate-notes --verify-tag. - Publish to Homebrew tap via App token.
Why → Fan-in keeps release creation atomic with all assets.
Interview tip → Mention checksums and provenance as part of "done".
More on Runners, ARC, Monorepos & Releases
You must build on runners that can reach an internal Artifactory. Design the runner setup.AdvancedPersistent self-hosted runners keep failing because a previous job left files and Docker images. Fix the root cause.BeginnerDesign ARC for a company with Linux build jobs, Docker image builds, and GPU tests.AdvancedYou need to upgrade ARC across 10 clusters with zero dropped jobs. Plan it.AdvancedA monorepo has 30 services; every PR builds all of them. Redesign.AdvancedA monorepo deploys each service independently with its own version. How do you trigger and version releases?Advanced