From a5b4b2de67c0a5b91b9bde1fd3bf7b8881d1a615 Mon Sep 17 00:00:00 2001 From: David Herberth Date: Fri, 21 Feb 2025 10:18:49 +0100 Subject: [PATCH 1/3] feat(release): Release aarch64 / arm64 binary --- .craft.yml | 2 ++ .github/workflows/build_binary.yml | 34 ++++++++++++++++++++++++++++++ CHANGELOG.md | 3 ++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/.craft.yml b/.craft.yml index 9055f7ca731..f416d261c0b 100644 --- a/.craft.yml +++ b/.craft.yml @@ -33,5 +33,7 @@ requireNames: - /^relay-Darwin-x86_64-dsym.zip$/ - /^relay-Linux-x86_64$/ - /^relay-Linux-x86_64-debug.zip$/ + - /^relay-Linux-aarch64$/ + - /^relay-Linux-aarch64-debug.zip$/ - /^relay-Windows-x86_64-pdb.zip$/ - /^relay-Windows-x86_64\.exe$/ diff --git a/.github/workflows/build_binary.yml b/.github/workflows/build_binary.yml index 3804e994810..d69a5e31d39 100644 --- a/.github/workflows/build_binary.yml +++ b/.github/workflows/build_binary.yml @@ -4,6 +4,8 @@ on: push: branches: - release/** + pull_request: + types: [opened, synchronize, reopened, labeled] env: CARGO_TERM_COLOR: always @@ -42,6 +44,38 @@ jobs: # since this artifact will be merged, compression is not necessary compression-level: '0' + linux-aarch64: + name: Linux Aarch64 + runs-on: ubuntu-22.04-arm + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install Rust Toolchain + run: rustup toolchain install stable --profile minimal --no-self-update + + - name: Build binary + run: | + make build-linux-release + env: + RELAY_FEATURES: + + - name: Bundle Debug File + run: | + cd target/release/ + zip relay-Linux-aarch64-debug.zip relay.debug + mv relay relay-Linux-aarch64 + + - uses: actions/upload-artifact@v4 + with: + name: artifact-linux-aarch64 + path: target/release/relay-Linux-aarch64* + if-no-files-found: 'error' + # since this artifact will be merged, compression is not necessary + compression-level: '0' + macos: name: macOS runs-on: macos-14 diff --git a/CHANGELOG.md b/CHANGELOG.md index b6e62253e2b..a7bd942b6b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,13 @@ **Features**: -- Add new `relay-threading` crate with asynchronous thread pool. ([#4500](https://github.com/getsentry/relay/pull/4500)) +- Update release to include an aarch64 binary. ([#4514](https://github.com/getsentry/relay/pull/4514)) - Support span `category` inference from span attributes. ([#4509](https://github.com/getsentry/relay/pull/4509)) **Internal**: - Track an utilization metric for internal services. ([#4501](https://github.com/getsentry/relay/pull/4501)) +- Add new `relay-threading` crate with asynchronous thread pool. ([#4500](https://github.com/getsentry/relay/pull/4500)) ## 25.2.0 From 82f1c16d148073280ee2c0dca8d8b83b829fd2b5 Mon Sep 17 00:00:00 2001 From: David Herberth Date: Fri, 21 Feb 2025 10:58:51 +0100 Subject: [PATCH 2/3] remove pr trigger again --- .github/workflows/build_binary.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build_binary.yml b/.github/workflows/build_binary.yml index d69a5e31d39..629909b0ca9 100644 --- a/.github/workflows/build_binary.yml +++ b/.github/workflows/build_binary.yml @@ -4,8 +4,6 @@ on: push: branches: - release/** - pull_request: - types: [opened, synchronize, reopened, labeled] env: CARGO_TERM_COLOR: always From d35ed5bb596ebfb8a54be9591a0bce2f716d579f Mon Sep 17 00:00:00 2001 From: David Herberth Date: Fri, 21 Feb 2025 11:01:43 +0100 Subject: [PATCH 3/3] fix job dependency --- .github/workflows/build_binary.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_binary.yml b/.github/workflows/build_binary.yml index 629909b0ca9..b6abf2dbc05 100644 --- a/.github/workflows/build_binary.yml +++ b/.github/workflows/build_binary.yml @@ -138,7 +138,7 @@ jobs: merge: name: Create Release Artifact runs-on: ubuntu-latest - needs: [linux, macos, windows] + needs: [linux, linux-aarch64, macos, windows] steps: # Note: due to the immutability of artifacts in upload-artifact v4, # there cannot be mutliple upload-artifacts with the same name, in a sha's workflow runs.