mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
refactor!: 全量迁移到 Go,移除 Rust 与 jq 依赖
- 删除 rust/、script/up.sh、script/daemon.sh、bin/jq(ZIP 少 1.8MB 依赖) - service.sh 改为薄启动器;boost.sh / script/restart.sh 转发到 Go 子命令 - customize.sh 全部 jq 调用改为 luminpro config(init/ensure/set/get/summary/ inspect/migrate),安装向导与旧配置迁移逻辑保持不变 - CI 去掉 Rust 工具链与 NDK,改为 setup-go + go vet/test + 交叉编译 - build-module.js 排除 go/ dist/ .zcode/;.gitignore 忽略 bin/luminpro - WebUI 清理 up.flag 死引用,状态页标签改为「守护进程」 - README / README_en / DEVELOPMENT 同步为 Go 架构说明
This commit is contained in:
1 parent
db3cc2faa5
commit
e50cf5bd89
24 files changed
+286
-1164
No files matched your search
@@ -31,36 +31,25 @@ jobs:
|
||||
- name: Build WebUI
|
||||
run: pnpm build
|
||||
|
||||
# ── 2. lumipro 二进制 ────────────────────────────────────────────────
|
||||
- name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
# ── 2. luminpro 二进制 (Go) ─────────────────────────────────────────
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
targets: aarch64-linux-android
|
||||
go-version-file: go/go.mod
|
||||
cache-dependency-path: go/go.sum
|
||||
|
||||
- name: Setup Android NDK
|
||||
uses: nttld/setup-ndk@v1
|
||||
id: ndk
|
||||
with:
|
||||
ndk-version: r27c
|
||||
|
||||
- name: Cache Rust dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: rust
|
||||
|
||||
- name: Install cargo-ndk
|
||||
run: cargo install cargo-ndk --locked
|
||||
|
||||
- name: Build lumipro (aarch64-linux-android)
|
||||
working-directory: rust
|
||||
env:
|
||||
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
|
||||
run: cargo ndk -t arm64-v8a --platform 26 build --release
|
||||
|
||||
- name: Copy binary to bin/
|
||||
- name: Test Go packages
|
||||
working-directory: go
|
||||
run: |
|
||||
cp rust/target/aarch64-linux-android/release/lumipro bin/lumipro
|
||||
chmod +x bin/lumipro
|
||||
go vet ./...
|
||||
go test ./...
|
||||
|
||||
- name: Build luminpro (android/arm64)
|
||||
working-directory: go
|
||||
run: |
|
||||
mkdir -p ../bin
|
||||
CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build -trimpath -ldflags="-s -w" -o ../bin/luminpro ./cmd/luminpro
|
||||
chmod +x ../bin/luminpro
|
||||
|
||||
# ── 3. 打包模块 ──────────────────────────────────────────────────────
|
||||
- name: Package module
|
||||
|
||||
Reference in new issue
Block a user