Skip to content

✨ add support for arm architectures - #241

Open
a-tokyo wants to merge 1 commit into
ksivamuthu:mainfrom
a-tokyo:feature/arm-64
Open

✨ add support for arm architectures#241
a-tokyo wants to merge 1 commit into
ksivamuthu:mainfrom
a-tokyo:feature/arm-64

Conversation

@a-tokyo

@a-tokyo a-tokyo commented Dec 16, 2025

Copy link
Copy Markdown

PR Description: PR adds automatic ARM64 architecture detection and support to the action, allowing it to work seamlessly on both x64 and ARM64 GitHub Actions runners.

Changes

Core Changes

  • Added getPlatformSuffix() function in src/main.ts to detect platform and architecture

    • Detects ARM64 architectures (arm64, aarch64)
    • Maps to Copilot CLI binary naming convention (-arm64 suffix)
    • Includes graceful fallback with warnings for unsupported architectures
  • Updated install() function to use the new platform suffix when constructing download URLs

    • x64: copilot-linux-v1.33.0
    • ARM64: copilot-linux-arm64-v1.33.0

Documentation Changes

  • Updated action.yml: Added version input parameter with description
  • Enhanced README.md:
    • Added Features section highlighting ARM64 support
    • Added ARM64 usage example
    • Improved overall documentation structure

Build

  • ✅ Compiled and bundled using npm run all
  • ✅ All tests passing
  • ✅ No breaking changes

Testing

Build & Tests

npm run build # ✅ TypeScript compilation successful
npm run package # ✅ Bundle created successfully
npm test # ✅ All tests passing### Compatibility

  • ✅ Backwards compatible with existing x64 runners
  • ✅ Ready for ARM64 runners (e.g., ubuntu-latest-arm64)
  • ✅ No changes required to existing workflows

Example Usage

Before (ARM64 users had to do this manually):

  • run: |
    curl --proto '=https' -Lo /tmp/copilot-cli https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux-arm64
    chmod +x /tmp/copilot-cli
    sudo mv /tmp/copilot-cli /usr/local/bin/copilot### After (works automatically on both x64 and ARM64):

  • uses: ksivamuthu/aws-copilot-github-action@main
    with:
    command: install## Checklist

  • Source code updated (src/main.ts)

  • Built and packaged (dist/index.js)

  • Documentation updated (README.md, action.yml)

  • Tests passing

  • No breaking changes

  • Backwards compatible

Related Issues

Closes #240

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.

Missing ARM 64 architecture support

1 participant