Skip to content

Commit 2e589b9

Browse files
committed
feat(release): Release aarch64 / arm64 binary
1 parent b86229c commit 2e589b9

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.craft.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ requireNames:
3333
- /^relay-Darwin-x86_64-dsym.zip$/
3434
- /^relay-Linux-x86_64$/
3535
- /^relay-Linux-x86_64-debug.zip$/
36+
- /^relay-Linux-aarch64$/
37+
- /^relay-Linux-aarch64-debug.zip$/
3638
- /^relay-Windows-x86_64-pdb.zip$/
3739
- /^relay-Windows-x86_64\.exe$/

.github/workflows/build_binary.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- release/**
7+
pull_request:
8+
types: [opened, synchronize, reopened, labeled]
79

810
env:
911
CARGO_TERM_COLOR: always
@@ -42,6 +44,38 @@ jobs:
4244
# since this artifact will be merged, compression is not necessary
4345
compression-level: '0'
4446

47+
linux-aarch64:
48+
name: Linux Aarch64
49+
runs-on: ubuntu-22.04-arm
50+
51+
steps:
52+
- uses: actions/checkout@v4
53+
with:
54+
submodules: recursive
55+
56+
- name: Install Rust Toolchain
57+
run: rustup toolchain install stable --profile minimal --no-self-update
58+
59+
- name: Build binary
60+
run: |
61+
make build-linux-release
62+
env:
63+
RELAY_FEATURES:
64+
65+
- name: Bundle Debug File
66+
run: |
67+
cd target/release/
68+
zip relay-Linux-aarch64-debug.zip relay.debug
69+
mv relay relay-Linux-aarch64
70+
71+
- uses: actions/upload-artifact@v4
72+
with:
73+
name: artifact-linux
74+
path: target/release/relay-Linux-aarch64*
75+
if-no-files-found: 'error'
76+
# since this artifact will be merged, compression is not necessary
77+
compression-level: '0'
78+
4579
macos:
4680
name: macOS
4781
runs-on: macos-14

0 commit comments

Comments
 (0)