ci: add Linux ARM64 support to build and release workflows#99
Open
litianningdatadog wants to merge 1 commit intomainfrom
Open
ci: add Linux ARM64 support to build and release workflows#99litianningdatadog wants to merge 1 commit intomainfrom
litianningdatadog wants to merge 1 commit intomainfrom
Conversation
duncanista
approved these changes
Mar 19, 2026
jchrostek-dd
approved these changes
Mar 19, 2026
- Add aarch64-unknown-linux-musl build steps to build workflow - Remove ubuntu-24.04-arm exclusion guard - Add ubuntu-24.04-arm to release matrix - Add linux-arm64 artifact download, upx compression, and zip in release - Add aarch64-linux-musl-gcc linker to .cargo/config.toml - Add panic=abort and exclude crates/.claude to Cargo.toml
058cb3d to
0e5b4f5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://datadoghq.atlassian.net/browse/SVLS-8574
What does this PR do?
As AWS Lambda Lite (under NDA as of March 19, 2026) supports Linux ARM64, we add Linux ARM64 (
aarch64-unknown-linux-musl) as a supported build and release target fordatadog-serverless-compat, alongside the existing Linux AMD64 and Windows AMD64 targets.We also introduced a platform-specific serverless-compatible packaging solution so the final user deployment includes only the relevant binary.
Changes
Add support for
linux-arm64releaseIntroduce a new Github action
Release Datadog Serverless Compat (Per Platform)to create the platform specific packages while keeping the existing single package solution.Update
Cargo.tomlcrates/*from resolving the.claudetooling directory as a Cargo memberTesting
Built and released both targets locally:
linux-arm64: 5.8 MB raw → 2.0 MB afterupx --lzma(33% of original)linux-amd64: 7.8 MB raw → 2.3 MB afterupx --lzma(29% of original)Verified the ARM64 binary is a valid
ELF 64-bit LSB executable, ARM aarch64, statically linked.