fix(ci): use sha256sum on Linux/Windows, shasum on macOS#2
Merged
xuzhougeng merged 1 commit intomainfrom Apr 22, 2026
Merged
Conversation
The Release workflow's Windows build failed at the Package step because `shasum` is not available in Windows Git Bash on GitHub runners. macOS, on the other hand, ships `shasum` (Perl) but not `sha256sum`. Pick the right tool per OS so all three platforms produce an identical `<archive>.sha256` output line (`<hex> <filename>`). Repro: https://github.com/AI4S-YB/RustQC/actions/runs/24770337963 (run after merge of #1; Windows job failed with `shasum: command not found`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hotfix after merge of #1. The Release workflow's Build windows-x86_64 job failed at the Package step with:
```
D:\a_temp....sh: line 22: shasum: command not found
Error: Process completed with exit code 127.
```
GitHub's Windows runner image ships Git Bash without the Perl-based `shasum` tool, but it does ship `sha256sum` (from coreutils). macOS is the opposite. Fix: branch on `$RUNNER_OS`.
Repro: https://github.com/AI4S-YB/RustQC/actions/runs/24770337963
Test plan
🤖 Generated with Claude Code