Skip to content

Commit 17a2ab3

Browse files
chore: Added github workflow for building linux arm binary
1 parent 2744736 commit 17a2ab3

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Create Linux Arm64 binary for testing
2+
3+
on:
4+
push:
5+
branches:
6+
- "test/*"
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-24.04-arm
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install Rust
17+
uses: dtolnay/rust-toolchain@stable
18+
19+
- name: Build release binary
20+
run: cargo build --release --workspace
21+
22+
- name: Rename binaries
23+
run: |
24+
mkdir dist
25+
mv target/release/null-talk-client dist/null-talk-client-linux-arm64
26+
mv target/release/null-talk-server dist/null-talk-server-linux-arm64
27+
28+
- name: Upload Build to Server
29+
uses: appleboy/scp-action@v0.1.7
30+
with:
31+
host: ${{ secrets.HOST }}
32+
username: ${{ secrets.USERNAME }}
33+
key: ${{ secrets.PRIVATE_KEY }}
34+
source: "dist"
35+
target: ${{ secrets.TARGET_PATH }}

0 commit comments

Comments
 (0)