Skip to content

Commit

Permalink
ci: hash archive files
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Sep 10, 2023
1 parent 0ba0726 commit 99a3296
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,12 @@ jobs:
run: |
Compress-Archive -Path "${{github.workspace}}/deploy/*" -Destination "SuiteSparse-${{env.VERSION_SUFFIX}}.zip"
- name: Generate Hashes
run: |
$archive = "SuiteSparse-${{env.VERSION_SUFFIX}}.zip"
$hash = $(Get-FileHash -Algorithm SHA256 -Path "$archive").Hash
echo "$archive $hash" | Out-File -FilePath "$archive.sha256"
- uses: actions/upload-artifact@v3
with:
name: SuiteSparse-${{env.VERSION_SUFFIX}}
Expand All @@ -282,4 +288,5 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && matrix.lib == 'shared'
with:
files:
SuiteSparse-${{env.VERSION_SUFFIX}}.sha256
SuiteSparse-${{env.VERSION_SUFFIX}}.zip

0 comments on commit 99a3296

Please sign in to comment.