File tree Expand file tree Collapse file tree 2 files changed +13
-22
lines changed Expand file tree Collapse file tree 2 files changed +13
-22
lines changed Original file line number Diff line number Diff line change 1- name : release
1+ name : Publish vdev
22on :
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"
You can’t perform that action at this time.
0 commit comments