From c68eee75c306cf7d5e7e9999be1a120ec834757d Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 22 Aug 2024 17:39:07 -0700 Subject: [PATCH] ci: separate macOS and Linux runs --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67e389e..ebf7dea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,8 +86,8 @@ jobs: $hash = (Get-FileHash "$distPath\$exeName" -Algorithm SHA256).Hash.ToLower() "$hash *$exeName" | Out-File -FilePath "$distPath\$hashFile" -Encoding utf8 - - name: Generate SHA256 (Linux/macOS) - if: matrix.os != 'windows-latest' + - name: Generate SHA256 (Linux) + if: matrix.os == 'ubuntu-latest' run: | distPath=$(if [ "${{ github.event.inputs.build_type }}" = "RELEASE" ]; then echo "build/release/dist"; else echo "build/dev/dist"; fi) exeName="AutoGGUF-x64" @@ -95,6 +95,15 @@ jobs: hashFile="AutoGGUF-${{ matrix.os }}-x64-$versionHash.sha256" cd $distPath && sha256sum $exeName > $hashFile + - name: Generate SHA256 (macOS) + if: matrix.os == 'macos-latest' + run: | + distPath=$(if [ "${{ github.event.inputs.build_type }}" = "RELEASE" ]; then echo "build/release/dist"; else echo "build/dev/dist"; fi) + exeName="AutoGGUF-x64" + versionHash=$(echo ${{ github.sha }} | cut -c1-7) + hashFile="AutoGGUF-${{ matrix.os }}-x64-$versionHash.sha256" + cd $distPath && shasum -a 256 $exeName > $hashFile + - name: Upload Artifact uses: actions/upload-artifact@v2 with: