fix(argo): ensure-binary cp from CARGO_TARGET_DIR, not in-tree target/

CARGO_TARGET_DIR=/cargo-target redirects all build output away from
the in-tree `<crate>/target/` path, so `cp $BUILD/target/release/...`
fails after a successful compile. Mirror alpha-perception-template's
correct pattern: `cp $CARGO_TARGET_DIR/release/...`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-05-19 12:28:00 +02:00
parent 0567d547ce
commit 77d1c8e09a

View File

@@ -220,7 +220,7 @@ spec:
fi
cargo build -p fxt-backtest --release
cp "$BUILD/target/release/fxt-backtest" "$BIN_DIR/fxt-backtest"
cp "$CARGO_TARGET_DIR/release/fxt-backtest" "$BIN_DIR/fxt-backtest"
echo "$SHORT_SHA" > /tmp/sha
ls -lh "$BIN_DIR/fxt-backtest"