From acc799cd2e506df29471e34aee5f97ddf269ef77 Mon Sep 17 00:00:00 2001 From: can1357 Date: Thu, 5 Feb 2026 08:28:56 +0100 Subject: [PATCH] chore(ci): improved release process and expanded Rust toolchain support - Updated release process to create new commits with descriptive messages instead of amending previous commits. - Changed release push strategy from force push to regular push for better git history integrity. - Extended check:rs script to verify minimal dependency versions and Windows MSVC target compilation. - Added x86_64-pc-windows-msvc target to Rust toolchain configuration for cross-compilation support. --- .claude/commands/release.md | 6 +++--- package.json | 2 +- rust-toolchain.toml | 2 +- scripts/release.ts | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.claude/commands/release.md b/.claude/commands/release.md index b167ae2d0..650d09be6 100644 --- a/.claude/commands/release.md +++ b/.claude/commands/release.md @@ -31,11 +31,11 @@ The script handles everything automatically: ## Handling CI Failures -If CI fails, the script exits with an error. Fix the issue, then: +If CI fails, the script exits with an error. Fix the issue, then repeat until CI passes: ```bash -git commit --amend --no-edit -git push origin main --force +git commit -m "fix: " +git push origin main git tag -f v$ARGUMENTS && git push origin v$ARGUMENTS --force bun scripts/release.ts watch ``` diff --git a/package.json b/package.json index a56382412..2123ad231 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test": "bun --cwd=packages/ai run test && bun --cwd=packages/agent run test && bun --cwd=packages/tui run test && bun --cwd=packages/natives run test && bun --cwd=packages/coding-agent run test", "check": "bun run check:ts && bun run check:rs", "check:ts": "biome check . && tsgo -p tsconfig.json && tsgo -p packages/stats/tsconfig.client.json", - "check:rs": "cargo fmt --all -- --check && cargo clippy --workspace -- -D warnings", + "check:rs": "cargo fmt --all -- --check && cargo clippy --workspace -- -D warnings && cargo check -Z minimal-versions --workspace && cargo check --workspace --target x86_64-pc-windows-msvc", "lint": "bun run lint:ts && bun run lint:rs", "lint:ts": "biome lint .", "lint:rs": "cargo clippy --workspace -- -D warnings", diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 15b057979..c8bad953b 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] channel = "nightly" components = ["rustfmt", "clippy", "rust-analyzer"] -targets = ["x86_64-unknown-linux-gnu"] +targets = ["x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] diff --git a/scripts/release.ts b/scripts/release.ts index e9efa1713..f6de7dea6 100755 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -292,9 +292,9 @@ async function cmdRelease(version: string): Promise { if (success) { console.log(`=== Released v${version} ===`); } else { - console.log("\nTo retry after fixing:"); - console.log(" git commit --amend --no-edit"); - console.log(" git push origin main --force"); + console.log("\nTo retry after fixing (repeat until CI passes):"); + console.log(" git commit -m \"fix: \""); + console.log(" git push origin main"); console.log(` git tag -f v${version} && git push origin v${version} --force`); console.log(" bun scripts/release.ts watch"); process.exit(1);