ci: Add debug workflow to inspect Windows sha256sum line endings #1
Workflow file for this run
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
| name: debug-windows-line-endings | |
| on: | |
| push: | |
| branches: | |
| - 'beeklimt/debug-windows-line-endings' | |
| workflow_dispatch: | |
| jobs: | |
| inspect: | |
| runs-on: windows-2022 | |
| steps: | |
| - name: Inspect sha256sum output bytes on Git Bash | |
| shell: bash | |
| run: | | |
| set -e | |
| printf 'one\n' > one.bin | |
| printf 'two\n' > two.bin | |
| printf 'three\n' > three.bin | |
| echo | |
| echo '==== raw sha256sum stdout (od -c) ====' | |
| sha256sum one.bin two.bin three.bin | od -c | |
| echo | |
| echo '==== base64 round-trip via env var (mirrors GITHUB_OUTPUT path) ====' | |
| HASHES_WINDOWS=$(sha256sum one.bin two.bin three.bin | base64 -w0) | |
| echo "$HASHES_WINDOWS" | base64 -d > checksums.txt | |
| od -c checksums.txt | |
| echo "wc -l: $(wc -l < checksums.txt), file size: $(wc -c < checksums.txt)" | |
| echo | |
| echo '==== Node os.EOL on this runner ====' | |
| node -e "console.log(JSON.stringify(require('os').EOL))" |