Commit Graph

4 Commits

Author SHA1 Message Date
siujamo 12aea0fc26 Replace cross-rs with cargo-zigbuild for cross-compilation
Build / build (ccsm-darwin-amd64.tar.gz, ccsm, x86_64-apple-darwin) (push) Failing after 4m34s
Build / build (ccsm-linux-amd64.tar.gz, ccsm, x86_64-unknown-linux-gnu) (push) Failing after 2m27s
Build / build (ccsm-windows-amd64.zip, ccsm.exe, x86_64-pc-windows-gnu) (push) Has been cancelled
cross-rs has no Docker image for macOS targets and the Windows image
has a broken cargo PATH, causing all non-Linux builds to fail.
Zig's toolchain handles Linux→macOS and Linux→Windows cross-compilation
from a single ubuntu runner. Also add --target to the native Linux build
so the output path matches the Package step.
2026-06-22 09:56:30 +08:00
siujamo 74cbccc5a8 Fix Rust installation in CI workflow
Build / build (ccsm-darwin-amd64.tar.gz, ccsm, x86_64-apple-darwin) (push) Failing after 1m36s
Build / build (ccsm-linux-amd64.tar.gz, ccsm, x86_64-unknown-linux-gnu) (push) Failing after 2m32s
Build / build (ccsm-windows-amd64.zip, ccsm.exe, x86_64-pc-windows-gnu) (push) Failing after 2m57s
Replace `rustup update` (which assumes Rust is pre-installed) with the
official rustup install script, then add ~/.cargo/bin to GITHUB_PATH.
2026-06-18 17:41:57 +08:00
siujamo b08904586d Switch to cross-compilation via cross-rs
Build / build (ccsm-darwin-amd64.tar.gz, ccsm, x86_64-apple-darwin) (push) Failing after 6s
Build / build (ccsm-linux-amd64.tar.gz, ccsm, x86_64-unknown-linux-gnu) (push) Failing after 7s
Build / build (ccsm-windows-amd64.zip, ccsm.exe, x86_64-pc-windows-gnu) (push) Failing after 7s
Build all targets (Linux, macOS, Windows) from a single Linux runner
using `cross` for macOS and Windows targets. Linux target builds
natively without cross.
2026-06-18 17:36:44 +08:00
siujamo c92a660b86 Add Gitea Actions build workflow
Build / build (ccsm-linux-amd64.tar.gz, ccsm, linux, ubuntu-latest, x86_64-unknown-linux-gnu) (push) Failing after 6s
Build / build (ccsm-darwin-amd64.tar.gz, ccsm, macos, macos-latest, x86_64-apple-darwin) (push) Has been cancelled
Build / build (ccsm-windows-amd64.zip, ccsm.exe, windows, windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
Build release binaries for Linux (amd64), macOS (amd64), and Windows
(amd64) on push/PR to main and on tags.
2026-06-18 17:33:57 +08:00