Skip to content

Build MQ Tool for arm linux and arm macos#24

Merged
EliSchleifer merged 3 commits intomainfrom
eli/build-more-archs
Nov 6, 2025
Merged

Build MQ Tool for arm linux and arm macos#24
EliSchleifer merged 3 commits intomainfrom
eli/build-more-archs

Conversation

@EliSchleifer
Copy link
Member

No description provided.

@trunk-staging-io
Copy link

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@EliSchleifer EliSchleifer requested a review from Copilot November 6, 2025 18:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for building the MQ tool on ARM Linux (aarch64) and ARM macOS (Apple Silicon) platforms. The changes enable cross-compilation for these new targets and update the CI/CD workflows to handle platform-specific differences.

Key Changes:

  • Added ARM Linux (aarch64-unknown-linux-gnu) and ARM macOS (aarch64-apple-darwin) build targets to release workflows
  • Updated workflows to handle platform-specific differences (macOS uses zip archives while Linux uses tar.gz)
  • Enhanced the PR targets workflow to automatically detect and download the correct binary for the runner's architecture

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/test.yml Removed unused GitHub token parameters from checkout and trunk-action steps
.github/workflows/release.yaml Added ARM Linux and macOS build targets with platform-specific packaging and toolchain configuration
.github/workflows/prerelease.yaml Added ARM Linux and macOS build targets with platform-specific packaging (identical changes to release.yaml)
.github/workflows/pr_targets.yaml Enhanced to automatically detect runner architecture and download the appropriate binary format, plus fixed a typo in the lfs field

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

run: |
gh release create --target ${{ github.ref }} \
${{ github.event.inputs.release_tag }} ./build/*.tar.gz --generate-notes
${{ github.event.inputs.release_tag }} ./build/*.{tar.gz,zip} --generate-notes
Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The glob pattern './build/.{tar.gz,zip}' may not work as expected in bash. If no .zip files exist, the literal string './build/.zip' will be passed to gh release. Consider using a more robust approach like 'shopt -s nullglob' before the command or finding files explicitly with 'find'.

Suggested change
${{ github.event.inputs.release_tag }} ./build/*.{tar.gz,zip} --generate-notes
${{ github.event.inputs.release_tag }} $(find ./build -maxdepth 1 -type f \( -name "*.tar.gz" -o -name "*.zip" \)) --generate-notes

Copilot uses AI. Check for mistakes.
run: |
gh release create --target ${{ github.ref }} \
${{ github.event.inputs.release_tag }} ./build/*.tar.gz --generate-notes --prerelease
${{ github.event.inputs.release_tag }} ./build/*.{tar.gz,zip} --generate-notes --prerelease
Copy link

Copilot AI Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The glob pattern './build/.{tar.gz,zip}' may not work as expected in bash. If no .zip files exist, the literal string './build/.zip' will be passed to gh release. Consider using a more robust approach like 'shopt -s nullglob' before the command or finding files explicitly with 'find'.

Suggested change
${{ github.event.inputs.release_tag }} ./build/*.{tar.gz,zip} --generate-notes --prerelease
${{ github.event.inputs.release_tag }} $(find ./build -maxdepth 1 -type f \( -name "*.tar.gz" -o -name "*.zip" \)) --generate-notes --prerelease

Copilot uses AI. Check for mistakes.
@EliSchleifer EliSchleifer merged commit e527f19 into main Nov 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants