Skip to content

Commit d5f4ed9

Browse files
EstrellaXDclaude
andcommitted
feat: replace Docker publish with native aarch64 release workflow
Build on ubuntu-24.04-arm runner (native aarch64, no cross-compile), package binary + static assets into tarball, publish as GitHub Release. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 28347d8 commit d5f4ed9

2 files changed

Lines changed: 63 additions & 50 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
name: Build aarch64 Release
15+
runs-on: ubuntu-24.04-arm
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install stable Rust toolchain
21+
uses: dtolnay/rust-toolchain@stable
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "22"
27+
cache: npm
28+
cache-dependency-path: frontend/package-lock.json
29+
30+
- name: Cache cargo registry and target
31+
uses: actions/cache@v4
32+
with:
33+
path: |
34+
~/.cargo/registry
35+
~/.cargo/git
36+
backend/target
37+
key: ${{ runner.os }}-aarch64-cargo-release-${{ hashFiles('backend/Cargo.lock') }}
38+
restore-keys: |
39+
${{ runner.os }}-aarch64-cargo-release-
40+
41+
- name: Build frontend
42+
working-directory: frontend/
43+
run: npm ci && npm run build
44+
45+
- name: Copy frontend assets to backend static dir
46+
run: cp -r frontend/dist backend/static
47+
48+
- name: Build backend (release)
49+
working-directory: backend/
50+
run: cargo build --release
51+
52+
- name: Package release artifact
53+
run: |
54+
mkdir -p release/static
55+
cp backend/target/release/server-monitor release/
56+
cp -r backend/static/* release/static/
57+
tar -czf server-monitor-aarch64-linux.tar.gz -C release .
58+
59+
- name: Create GitHub Release
60+
uses: softprops/action-gh-release@v2
61+
with:
62+
files: server-monitor-aarch64-linux.tar.gz
63+
generate_release_notes: true

0 commit comments

Comments
 (0)