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
2
2
on :
3
3
push :
4
4
tags : [ "vdev-v*.*.*" ]
@@ -37,14 +37,20 @@ jobs:
37
37
run : cargo build --release --target ${{ matrix.target }}
38
38
39
39
- name : Package
40
- working-directory : vdev
41
40
shell : bash
42
41
run : |
43
42
VERSION=${GITHUB_REF_NAME#vdev-v}
44
43
OUTDIR="vdev-${{ matrix.target }}-v${VERSION}"
45
44
mkdir -p "$OUTDIR"
46
45
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
+
48
54
cp "$BIN" "$OUTDIR/"
49
55
tar -czf "${OUTDIR}.tgz" "$OUTDIR"
50
56
echo "ASSET=${OUTDIR}.tgz" >> "$GITHUB_ENV"
You can’t perform that action at this time.
0 commit comments