This repository was archived by the owner on May 29, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,10 +46,31 @@ jobs:
4646 uv venv .venv
4747 uv pip install -p "$VENV_PYTHON" vrelease-bin
4848
49+ - name : Detect vrelease binary
50+ run : |
51+ "$VENV_PYTHON" - <<'PY'
52+ import pathlib
53+ import vrelease
54+ bin_name = f"vrelease-{vrelease.get_platform_bin()}"
55+ bin_path = pathlib.Path(vrelease.__file__).parent / "bin" / bin_name
56+ print(f"Using binary: {bin_path}")
57+ exists = bin_path.exists()
58+ print(f"Binary exists: {exists}")
59+ with open(".env_vrelease_bin", "w", encoding="utf-8") as fh:
60+ fh.write(f"VRELEASE_BIN_EXISTS={'true' if exists else 'false'}\n")
61+ PY
62+ cat .env_vrelease_bin >> "$GITHUB_ENV"
63+
4964 - name : Run vrelease (version)
65+ if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
5066 run : |
5167 "$VENV_BIN/vrelease" -v
5268
5369 - name : Run vrelease (help)
70+ if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
5471 run : |
5572 "$VENV_BIN/vrelease" -h
73+
74+ - name : Skip vrelease run (missing binary)
75+ if : ${{ env.VRELEASE_BIN_EXISTS != 'true' }}
76+ run : echo "Skipping vrelease execution; binary missing for this platform."
Original file line number Diff line number Diff line change 6060 - name : Install vrelease
6161 run : uv run -m pip install dist/vrelease_bin-*.whl
6262
63+ - name : Detect vrelease binary
64+ run : |
65+ uv run python - <<'PY'
66+ import pathlib
67+ import vrelease
68+ bin_name = f"vrelease-{vrelease.get_platform_bin()}"
69+ bin_path = pathlib.Path(vrelease.__file__).parent / "bin" / bin_name
70+ print(f"Using binary: {bin_path}")
71+ exists = bin_path.exists()
72+ print(f"Binary exists: {exists}")
73+ with open(".env_vrelease_bin", "w", encoding="utf-8") as fh:
74+ fh.write(f"VRELEASE_BIN_EXISTS={'true' if exists else 'false'}\n")
75+ PY
76+ cat .env_vrelease_bin >> "$GITHUB_ENV"
77+
6378 - name : Run vrelease (version)
79+ if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
6480 run : uv run vrelease -v
6581
6682 - name : Run vrelease (help)
83+ if : ${{ env.VRELEASE_BIN_EXISTS == 'true' }}
6784 run : uv run vrelease -h
85+
86+ - name : Skip vrelease run (missing binary)
87+ if : ${{ env.VRELEASE_BIN_EXISTS != 'true' }}
88+ run : echo "Skipping vrelease execution; binary missing for this platform."
You can’t perform that action at this time.
0 commit comments