From 543030040c7bf5a78b79860493280f8ccc94ab2e Mon Sep 17 00:00:00 2001 From: Pierrick Fonquerne Date: Wed, 3 Jun 2026 15:54:20 +0200 Subject: [PATCH] ci: run ai-review binary from workspace target dir The ai-review crate is a member of the workspace defined at the repository root, so cargo emits the release binary to ./target, not tools/ai-review/target. The Run step pointed at the crate directory and exited 127. Point Run at the workspace target dir and align the rust-cache workspace entry. --- .github/workflows/ai-review.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 73bb05c..b09e703 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -33,7 +33,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: - workspaces: "tools/ai-review -> tools/ai-review/target" + workspaces: "." - name: Build run: cargo build --release --manifest-path tools/ai-review/Cargo.toml @@ -45,4 +45,4 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} PR_NUMBER: ${{ inputs.pr-number }} AI_MODE: ${{ inputs.mode }} - run: ./tools/ai-review/target/release/ai-review + run: ./target/release/ai-review