fix(integration): build the pinned CLI into its own target directory
ci/woodpecker/push/eco Pipeline failed
ci/woodpecker/pr/eco Pipeline was canceled

The release packager resolves both binaries from the CLI checkout's target
directory, so the candidate build must happen there; the previous external
CARGO_TARGET_DIR left the package step with no release binary. Keeps one build
and one artifact identity.
This commit is contained in:
cflmy committed 2026-11-27 01:22:13 +08:00
1 parent 380d4f95a3
commit c190ffb184
1 file changed
+4 -1
+4 -1
View File
@@ -41,7 +41,10 @@ test -f "$work/stdlib/stdlib.json"
# 2. CLI and Worker from the exact pinned CLI gitlink.
source_sha="$(git -C cli rev-parse HEAD)"
export CARGO_TARGET_DIR="$work/target"
# The CLI release packager resolves its binaries from the pinned CLI checkout's
# own target directory; keep the build there so the package step consumes the
# same artifacts without a second build.
export CARGO_TARGET_DIR="$root/cli/target"
cargo build --manifest-path cli/Cargo.toml --locked --release \
-p marqdo-cli -p marqdo-provider-worker
version="$(python3 -c '