atleast its downloadable

This commit is contained in:
lda
2026-04-18 04:34:54 +07:00 Verified
parent 6b5405f066
commit 700ed51c25
2 changed files with 43 additions and 23 deletions
+42 -23
View File
@@ -7,6 +7,10 @@ on:
- "v*"
workflow_dispatch:
env:
# When using cargo-zigbuild for *-gnu targets, link against this glibc baseline (wider VPS compatibility).
WAKEY_CC_GLIBC_VERSION: "2.28"
jobs:
build:
# My Machine has arm-musl stuff - or else i have to use cross :(
@@ -38,36 +42,51 @@ jobs:
run: |
cargo build --release --target armv7-unknown-linux-musleabihf -p wakey -p wakey-agent
# - name: Build UI dist
# shell: bash
# run: |
# set -euo pipefail
# cd ui
# # corepack enable # no no no
# pnpm install --frozen-lockfile
# pnpm build
- name: Build UI dist
shell: bash
run: |
set -euo pipefail
cd ui
pnpm install --frozen-lockfile
pnpm build
# - name: Build control-plane (linux gnu)
# shell: bash
# run: |
# set -euo pipefail
# for target in x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu; do
# cargo build --release --target "$target" -p wakey-control-plane
# done
- name: Build control-plane (linux-gnu; zig + older glibc when available)
shell: bash
run: |
set -euo pipefail
GLIBC_VER="${WAKEY_CC_GLIBC_VERSION:-2.28}"
GNU_TARGETS=(x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu)
use_zig=false
if command -v zig >/dev/null 2>&1 && cargo zigbuild -h >/dev/null 2>&1; then
use_zig=true
fi
if [ "$use_zig" = true ]; then
echo "cargo-zigbuild + zig found: building control-plane with glibc ${GLIBC_VER}"
for base in "${GNU_TARGETS[@]}"; do
cargo zigbuild --release --target "${base}.${GLIBC_VER}" -p wakey-control-plane
done
else
echo "zig or cargo zigbuild not available: using plain cargo build (binary needs glibc >= host)"
for base in "${GNU_TARGETS[@]}"; do
cargo build --release --target "$base" -p wakey-control-plane
done
fi
- name: Package rootfs tarball
shell: pwsh
run: |
./scripts/package_rootfs.ps1 -Version "${{ github.ref_name }}" -Target armv7-unknown-linux-musleabihf
# - name: Package control-plane bundles
# shell: bash
# run: |
# set -euo pipefail
# chmod +x scripts/update_wakey_cc.sh scripts/package_wakey_cc_bundle.sh
# for target in x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu; do
# ./scripts/package_wakey_cc_bundle.sh --version "${{ github.ref_name }}" --target "$target"
# done
- name: Package control-plane bundles
shell: bash
run: |
set -euo pipefail
chmod +x scripts/update_wakey_cc.sh scripts/package_wakey_cc_bundle.sh
for target in x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu; do
./scripts/package_wakey_cc_bundle.sh --version "${{ github.ref_name }}" --target "$target"
done
- name: Upload artifact
uses: actions/upload-artifact@v3
+1
View File
@@ -25,6 +25,7 @@ pub struct Cli {
#[derive(Subcommand)]
pub enum Command {
/// Show merged device inventory rows.
#[command(alias = "status")]
Inventory(InventoryArgs),
/// Show DHCP leases, optionally enriched with current neighbor state.
Leases(LeasesArgs),