From 1747670f91f146488b40fbeefc5ef62fe3cdcd37 Mon Sep 17 00:00:00 2001 From: Jen Hamon Date: Thu, 7 May 2026 20:46:49 +0000 Subject: [PATCH] fix(ci): make abi3audit step OS-aware (fix Windows wheel-build job) Use RUNNER_TEMP instead of /tmp for the venv parent, and detect Scripts/ (Windows) vs bin/ (Linux/macOS) for the binary directory. Fixes exit code 127 on x86_64-pc-windows-msvc runners where Git Bash maps /tmp to a different path than RUNNER_TEMP, and Windows venvs place binaries in Scripts/ not bin/. Closes CI-0060. --- .github/workflows/release-readiness.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-readiness.yml b/.github/workflows/release-readiness.yml index 89bb5942..3ea2af7d 100644 --- a/.github/workflows/release-readiness.yml +++ b/.github/workflows/release-readiness.yml @@ -417,9 +417,15 @@ jobs: shell: bash run: | set -euo pipefail - python3 -m venv /tmp/abi3audit-venv - /tmp/abi3audit-venv/bin/pip install --quiet abi3audit - /tmp/abi3audit-venv/bin/python -m abi3audit --strict --report dist/*.whl + VENV_DIR="${RUNNER_TEMP}/abi3audit-venv" + python3 -m venv "$VENV_DIR" + if [ -d "$VENV_DIR/Scripts" ]; then + VBIN="$VENV_DIR/Scripts" + else + VBIN="$VENV_DIR/bin" + fi + "$VBIN/pip" install --quiet abi3audit + "$VBIN/python" -m abi3audit --strict --report dist/*.whl # auditwheel show inspects ELF binaries inside each manylinux wheel and reports # the actual minimum glibc version. A wheel tagged manylinux_2_17 but linking