Skip to content

Commit 06f2f59

Browse files
authored
fix(ci): vdev publish binary location fix (vectordotdev#23716)
* debug commit * need to be on the workspace dir, not vdev * revert unlrelated cargo.lock changes * remove trailing lines
1 parent b6f8e35 commit 06f2f59

File tree

2 files changed

+13
-22
lines changed

2 files changed

+13
-22
lines changed

.github/workflows/vdev_publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: release
1+
name: Publish vdev
22
on:
33
push:
44
tags: [ "vdev-v*.*.*" ]
@@ -37,14 +37,20 @@ jobs:
3737
run: cargo build --release --target ${{ matrix.target }}
3838

3939
- name: Package
40-
working-directory: vdev
4140
shell: bash
4241
run: |
4342
VERSION=${GITHUB_REF_NAME#vdev-v}
4443
OUTDIR="vdev-${{ matrix.target }}-v${VERSION}"
4544
mkdir -p "$OUTDIR"
4645
47-
BIN="target/${{ matrix.target }}/release/vdev"
46+
BIN_ROOT="${CARGO_TARGET_DIR:-target}"
47+
BIN="${BIN_ROOT}/${{ matrix.target }}/release/vdev"
48+
if [[ ! -f "$BIN" ]]; then
49+
echo "Binary not found at: $BIN"
50+
find ${BIN_ROOT} -type -d
51+
exit 1
52+
fi
53+
4854
cp "$BIN" "$OUTDIR/"
4955
tar -czf "${OUTDIR}.tgz" "$OUTDIR"
5056
echo "ASSET=${OUTDIR}.tgz" >> "$GITHUB_ENV"

Cargo.lock

Lines changed: 4 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)