From 52bbc5e83cca57d5744698915318e7cfe60a9f54 Mon Sep 17 00:00:00 2001 From: Ralf Anton Beier Date: Tue, 19 May 2026 12:35:09 +0200 Subject: [PATCH] fix(release): use python3 for sha256 (portable across linux/macos/windows) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit shasum -a 256 worked on linux + macOS but not on the windows-latest runner — the bundled git-bash doesn't ship the perl-based shasum on PATH. Switching to python3 inline (every GHA runner has python3) for a single portable codepath that produces the GNU-style two-space- separated hash output. This is the second retry of the falcon-v0.1.0 release. After this lands the falcon-v0.1.0 tag will be re-pushed; the release workflow re-runs against the fixed YAML and should clear all 5 build targets. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b191b73..b8e1b9a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,7 @@ jobs: cp CHANGELOG.md staging/ 2>/dev/null || true cp LICENSE staging/ 2>/dev/null || true tar -czf "$ARCHIVE" -C staging . - shasum -a 256 "$ARCHIVE" > "${ARCHIVE}.sha256" + python3 -c "import hashlib,sys; p=sys.argv[1]; print(f'{hashlib.sha256(open(p,\"rb\").read()).hexdigest()} {p}')" "$ARCHIVE" > "${ARCHIVE}.sha256" echo "ARCHIVE=${ARCHIVE}" >> "$GITHUB_ENV" - name: Package (zip) @@ -110,7 +110,7 @@ jobs: cp CHANGELOG.md staging/ 2>/dev/null || true cp LICENSE staging/ 2>/dev/null || true cd staging && 7z a "../${ARCHIVE}" . && cd .. - shasum -a 256 "$ARCHIVE" > "${ARCHIVE}.sha256" + python3 -c "import hashlib,sys; p=sys.argv[1]; print(f'{hashlib.sha256(open(p,\"rb\").read()).hexdigest()} {p}')" "$ARCHIVE" > "${ARCHIVE}.sha256" echo "ARCHIVE=${ARCHIVE}" >> "$GITHUB_ENV" - name: Install cosign