Skip to content

Commit

Permalink
Make checksums work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Jun 20, 2024
1 parent 2fbaa65 commit af8e63a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,15 @@ jobs:
run: ${{ matrix.arch == 'amd64' && 'make linux' || 'make linuxARM' }}
env:
GOARCH: ${{ matrix.arch }}
- name: Generate SHA256 checksum
- name: Generate SHA256 checksum on Linux and macOS
if: runner.os != 'Windows'
run: |
shasum -a 256 build/*/*/* > checksums.txt
- name: Generate SHA256 checksum on Windows
if: runner.os == 'Windows'
run: |
Get-ChildItem -Recurse build | Get-FileHash -Algorithm SHA256 | ForEach-Object { "$($_.Hash) $($_.Path)" } > checksums.txt
shell: pwsh
- name: Archive build artifacts on Windows
if: runner.os == 'windows'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit af8e63a

Please sign in to comment.