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.
This commit is contained in:
@@ -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: <brief description>"
|
||||
git push origin main
|
||||
git tag -f v$ARGUMENTS && git push origin v$ARGUMENTS --force
|
||||
bun scripts/release.ts watch
|
||||
```
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
+1
-1
@@ -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"]
|
||||
|
||||
+3
-3
@@ -292,9 +292,9 @@ async function cmdRelease(version: string): Promise<void> {
|
||||
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: <brief description>\"");
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user