[llvm] workflows/release-binaries: Fix digest generation on macOS (PR #176440)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 17 16:46:01 PST 2026
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/176440
>From 7a456c5a480a299e3e7a664bcf25641b5fe0ad74 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 16 Jan 2026 09:39:30 -0800
Subject: [PATCH] workflows/release-binaries: Fix digest generation on macOS
The sha256sum command is not available on macOS runners.
---
.github/workflows/release-binaries.yml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index a727cf5d929c5..4b1e80bcca30f 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -287,7 +287,13 @@ jobs:
# This will be empty on non-Windows builds.
WINDOWS_INSTALLER_FILENAME: ${{ steps.build-windows.outputs.windows-installer-filename }}
run: |
- echo "digest=$(cat $WINDOWS_INSTALLER_FILENAME $RELEASE_BINARY_FILENAME | sha256sum | cut -d ' ' -f 1)" >> $GITHUB_OUTPUT
+ if [ "$RUNNER_OS" = "macOS" ]; then
+ # Mac runners don't have sha256sum.
+ sha256sum="shasum -a 256"
+ else
+ sha256sum="sha256sum"
+ fi
+ echo "digest=$(cat $WINDOWS_INSTALLER_FILENAME $RELEASE_BINARY_FILENAME | $sha256sum | cut -d ' ' -f 1)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact at b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
id: artifact-upload
More information about the llvm-commits
mailing list