Commit Graph
4 Commits
Author SHA1 Message Date
orrisrootandCopilot e7692c109d ci: replace cross with cargo-zigbuild for aarch64 cross-compilation
Release / build-linux-x86_64 (push) Successful in 1m35s
Release / build-linux-aarch64 (push) Successful in 2m5s
cross runs builds inside a Docker container, so the host-installed
Rust toolchain is not visible. Replace with cargo-zigbuild which
uses Zig as a cross-linker and runs directly on the host.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-17 21:31:50 +09:00
orrisrootandCopilot 3a3186b24a ci: install Rust via rustup installer script
Release / build-linux-x86_64 (push) Successful in 1m34s
Release / build-linux-aarch64 (push) Failing after 1m39s
The act-runner environment does not have rustup pre-installed.
Install it using the official sh.rustup.rs script and append
~/.cargo/bin to GITHUB_PATH so subsequent steps can find the tools.

Node.js-based actions (actions/checkout, gitea-release-action) run
on the host runner where Node.js is available, so no container image
is needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-17 21:13:51 +09:00
orrisrootandCopilot 032f066307 ci: simplify release workflow using gitea-release-action
Release / build-linux-x86_64 (push) Failing after 15s
Release / build-linux-aarch64 (push) Failing after 6s
Replace manual curl-based release creation and asset upload with
akkuman/gitea-release-action@v1. Each build job now independently
creates/updates the release and uploads its asset in a single step.

Also remove macOS and Windows jobs as those runners are not available.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-17 20:43:02 +09:00
orrisrootandCopilot 3578a39d27 feat: implement selfupdate command
Release / create-release (push) Failing after 31s
Release / build-linux-x86_64 (push) Has been skipped
Release / build-linux-aarch64 (push) Has been skipped
Release / build-macos (aarch64-apple-darwin) (push) Has been skipped
Release / build-macos (x86_64-apple-darwin) (push) Has been skipped
Release / build-windows (push) Has been skipped
- Fetch latest release from Gitea API using existing reqwest client
- Match release asset by BUILD_TARGET triple (supports .tar.gz and .zip)
- Compare versions; show confirmation prompt (skippable with -y/--yes)
- Download archive, extract binary, atomically replace self via self-replace
- Support private repositories via GITEA_TOKEN environment variable
- Expose BUILD_TARGET in build.rs for compile-time target triple detection
- Add .gitea/workflows/release.yml for multi-platform release builds on tag push

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-17 20:15:19 +09:00