Skip to content

Commit 5941621

Browse files
committed
fix(ci): add cargo clean before build to resolve proc-macro errors
1 parent 749435f commit 5941621

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
- name: Cache dependencies
2626
uses: Swatinem/rust-cache@v2
2727

28-
- name: Build Project (Debug)
29-
run: cargo build --verbose
28+
- name: Clean and Build Project (Debug)
29+
run: |
30+
cargo clean
31+
cargo build --verbose
3032
3133
- name: Build Project (Release)
3234
run: cargo build --release --verbose

test-ci-build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# Test CI Build Sequence Locally
4+
# This script simulates the exact build sequence that will run in CI
5+
6+
set -e # Exit on any error
7+
8+
echo "🧹 Cleaning build artifacts..."
9+
cargo clean
10+
11+
echo "🔨 Building project (Debug)..."
12+
cargo build --verbose
13+
14+
echo "🔨 Building project (Release)..."
15+
cargo build --release --verbose
16+
17+
echo "🧪 Running tests..."
18+
cargo test --verbose
19+
20+
echo "✅ CI build sequence completed successfully!"
21+
echo "This indicates the CI pipeline should work correctly."

0 commit comments

Comments
 (0)