Skip to content

Commit 47dfac4

Browse files
committed
generate hash of release zip
1 parent 8d5abae commit 47dfac4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build_library.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ jobs:
748748
./.github/scripts/release.sh release
749749
mv release ${{ env.RELEASE_NAME }}
750750
zip -r ${{ env.RELEASE_NAME }}.zip ${{ env.RELEASE_NAME }}
751+
sha256sum ${{ env.RELEASE_NAME }}.zip | awk '{print $1}' > ${{ env.RELEASE_NAME }}.zip.sha256
751752
752753
- id: test_cmake
753754
name: Test cmake
@@ -785,6 +786,7 @@ jobs:
785786
with:
786787
files: |
787788
${{ env.RELEASE_NAME }}.zip
789+
${{ env.RELEASE_NAME }}.zip.sha256
788790
csharp/bin/Release/LlamaLib*nupkg
789791
name: Release ${{ env.VERSION }}
790792

.github/workflows_template/build_library_steps.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ jobs:
287287
./.github/scripts/release.sh release
288288
mv release ${{ env.RELEASE_NAME }}
289289
zip -r ${{ env.RELEASE_NAME }}.zip ${{ env.RELEASE_NAME }}
290+
sha256sum ${{ env.RELEASE_NAME }}.zip | awk '{print $1}' > ${{ env.RELEASE_NAME }}.zip.sha256
290291
291292
- name: Test cmake
292293
id: test_cmake
@@ -325,4 +326,5 @@ jobs:
325326
name: "Release ${{ env.VERSION }}"
326327
files: |
327328
${{ env.RELEASE_NAME }}.zip
329+
${{ env.RELEASE_NAME }}.zip.sha256
328330
csharp/bin/Release/LlamaLib*nupkg

0 commit comments

Comments
 (0)