File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -86,15 +86,24 @@ jobs:
86
86
$hash = (Get-FileHash "$distPath\$exeName" -Algorithm SHA256).Hash.ToLower()
87
87
"$hash *$exeName" | Out-File -FilePath "$distPath\$hashFile" -Encoding utf8
88
88
89
- - name : Generate SHA256 (Linux/macOS )
90
- if : matrix.os != 'windows -latest'
89
+ - name : Generate SHA256 (Linux)
90
+ if : matrix.os == 'ubuntu -latest'
91
91
run : |
92
92
distPath=$(if [ "${{ github.event.inputs.build_type }}" = "RELEASE" ]; then echo "build/release/dist"; else echo "build/dev/dist"; fi)
93
93
exeName="AutoGGUF-x64"
94
94
versionHash=$(echo ${{ github.sha }} | cut -c1-7)
95
95
hashFile="AutoGGUF-${{ matrix.os }}-x64-$versionHash.sha256"
96
96
cd $distPath && sha256sum $exeName > $hashFile
97
97
98
+ - name : Generate SHA256 (macOS)
99
+ if : matrix.os == 'macos-latest'
100
+ run : |
101
+ distPath=$(if [ "${{ github.event.inputs.build_type }}" = "RELEASE" ]; then echo "build/release/dist"; else echo "build/dev/dist"; fi)
102
+ exeName="AutoGGUF-x64"
103
+ versionHash=$(echo ${{ github.sha }} | cut -c1-7)
104
+ hashFile="AutoGGUF-${{ matrix.os }}-x64-$versionHash.sha256"
105
+ cd $distPath && shasum -a 256 $exeName > $hashFile
106
+
98
107
- name : Upload Artifact
99
108
uses : actions/upload-artifact@v2
100
109
with :
You can’t perform that action at this time.
0 commit comments