Repository navigation
chore(actions): add mac and linux arm64 distribution for release rc workflow - #1605
Conversation
WalkthroughThe GitHub Actions workflow for creating a release candidate has been updated to add build steps for the arm64 architecture on both macOS and Linux. These steps compile the Changes
Sequence Diagram(s)sequenceDiagram
participant Workflow
participant macOS_amd64
participant macOS_arm64
participant Linux_amd64
participant Linux_arm64
participant Windows
participant GitHub_Release
Workflow->>macOS_amd64: Build wren-launcher (amd64)
Workflow->>macOS_arm64: Build wren-launcher (arm64)
Workflow->>Linux_amd64: Build wren-launcher (amd64)
Workflow->>Linux_arm64: Build wren-launcher (arm64)
Workflow->>Windows: Build wren-launcher (amd64)
macOS_amd64->>Workflow: Provide artifact
macOS_arm64->>Workflow: Provide artifact
Linux_amd64->>Workflow: Provide artifact
Linux_arm64->>Workflow: Provide artifact
Windows->>Workflow: Provide artifact
Workflow->>GitHub_Release: Upload all artifacts (including new arm64 builds)
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/create-rc-release.yaml (2)
49-55: Verify CGO and cross-compilation for macOS arm64 build.The step sets
CGO_ENABLED=1when targetingdarwin/arm64, which may fail on themacos-latest(x86_64) runner without an Apple Clang cross‐toolchain. If your code has no C dependencies, disable CGO to avoid cross‐compilation issues:- env GOARCH=arm64 GOOS=darwin CGO_ENABLED=1 go build -o dist/wren-launcher-darwin-arm64 main.go + env GOARCH=arm64 GOOS=darwin CGO_ENABLED=0 go build -o dist/wren-launcher-darwin-arm64 main.goIf CGO is required, ensure the runner has the necessary toolchain installed.
84-85: Simplify artifact uploads or adopt a matrix strategy.Manually appending each new artifact increases maintenance overhead. You could:
- Use a glob pattern to include all dist outputs:
files: | ./wren-launcher/dist/*- Refactor the job with a
strategy.matrixforos: [darwin, linux, windows]andarch: [amd64, arm64]to DRY up the workflow.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/create-rc-release.yaml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
.github/workflows/create-rc-release.yaml (1)
63-69: Approve Linux ARM64 build step.The Linux ARM64 build correctly sets
GOARCH=arm64,GOOS=linux, and disables CGO (CGO_ENABLED=0), which is the recommended pattern for cross-compiling pure Go binaries.
Summary by CodeRabbit