Skip to content

Commit c68eee7

Browse files
committed
ci: separate macOS and Linux runs
1 parent bfd12bb commit c68eee7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,24 @@ jobs:
8686
$hash = (Get-FileHash "$distPath\$exeName" -Algorithm SHA256).Hash.ToLower()
8787
"$hash *$exeName" | Out-File -FilePath "$distPath\$hashFile" -Encoding utf8
8888
89-
- name: Generate SHA256 (Linux/macOS)
90-
if: matrix.os != 'windows-latest'
89+
- name: Generate SHA256 (Linux)
90+
if: matrix.os == 'ubuntu-latest'
9191
run: |
9292
distPath=$(if [ "${{ github.event.inputs.build_type }}" = "RELEASE" ]; then echo "build/release/dist"; else echo "build/dev/dist"; fi)
9393
exeName="AutoGGUF-x64"
9494
versionHash=$(echo ${{ github.sha }} | cut -c1-7)
9595
hashFile="AutoGGUF-${{ matrix.os }}-x64-$versionHash.sha256"
9696
cd $distPath && sha256sum $exeName > $hashFile
9797
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+
98107
- name: Upload Artifact
99108
uses: actions/upload-artifact@v2
100109
with:

0 commit comments

Comments
 (0)