https://github.com/c-rhodes updated 
https://github.com/llvm/llvm-project/pull/176843

>From 345fc8303e1beee86d17fa9f864f61033fd956b4 Mon Sep 17 00:00:00 2001
From: Tom Stellard <[email protected]>
Date: Mon, 19 Jan 2026 16:01:54 -0800
Subject: [PATCH] workflows/release-binaries: Fix digest generation on macOS
 (#176440)

The sha256sum command is not available on macOS runners.

(cherry picked from commit 80fe7964ee3e497429dfd09bf8fd27ddae06d3e2)
---
 .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 2d828015bc5c4..1b6930873e0d8 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -289,7 +289,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@b7c566a772e6b6bfb58ed0dc250532a479d7789f # 
v6.0.0
       id: artifact-upload

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to