From 8bd8ef77f25418a71942d2c5bda4217e97bf91b3 Mon Sep 17 00:00:00 2001 From: mungai-njoroge Date: Fri, 13 Oct 2023 00:57:33 +0300 Subject: [PATCH] add windows script to verify windows build --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eee56dc..1ea44ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,12 +65,20 @@ jobs: env: POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} LASTFM_API_KEY: ${{ secrets.LASTFM_API_KEY }} - - name: Verify build success + - name: Verify Linux build success + if: matrix.os == 'ubuntu-20.04' run: | if [ ! -f "./dist/swingmusic" ]; then echo "Build failed" exit 1 fi + - name: Verify Windows build success + if: matrix.os == 'windows-2019' + run: | + if not exist "./dist/swingmusic" ( + echo Build failed + exit /b 1 + ) - name: Upload Linux binary if: matrix.os == 'ubuntu-20.04' uses: actions/upload-artifact@v3