File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -82,17 +82,18 @@ jobs:
82
82
$archSuffix = if ("${{ matrix.arch }}" -eq "x86") { "-x86" } else { "-x64" }
83
83
$exeName = "AutoGGUF$archSuffix.exe"
84
84
$versionHash = "${{ github.sha }}".Substring(0, 7)
85
- $hashFile = "AutoGGUF-$versionHash.sha256"
86
- Get-FileHash "$distPath\$exeName" -Algorithm SHA256 | Select-Object -ExpandProperty Hash | Out-File -FilePath "$distPath\$hashFile"
85
+ $hashFile = "AutoGGUF-${{ matrix.os }}-${{ matrix.arch }}-$versionHash.sha256"
86
+ $hash = (Get-FileHash "$distPath\$exeName" -Algorithm SHA256).Hash.ToLower()
87
+ "$hash *$exeName" | Out-File -FilePath "$distPath\$hashFile" -Encoding utf8
87
88
88
89
- name : Generate SHA256 (Linux/macOS)
89
90
if : matrix.os != 'windows-latest'
90
91
run : |
91
92
distPath=$(if [ "${{ github.event.inputs.build_type }}" = "RELEASE" ]; then echo "build/release/dist"; else echo "build/dev/dist"; fi)
92
93
exeName="AutoGGUF-x64"
93
94
versionHash=$(echo ${{ github.sha }} | cut -c1-7)
94
- hashFile="AutoGGUF-$versionHash.sha256"
95
- sha256sum " $distPath/$exeName" | awk '{print $1}' > "$distPath/$ hashFile"
95
+ hashFile="AutoGGUF-${{ matrix.os }}-x64-$ versionHash.sha256"
96
+ cd $distPath && sha256sum $exeName > $ hashFile
96
97
97
98
- name : Upload Artifact
98
99
uses : actions/upload-artifact@v2
You can’t perform that action at this time.
0 commit comments