From 2410efa4cb301c71761dba8c1e57e2089e7fccab Mon Sep 17 00:00:00 2001 From: Zijing Zhang <50045289+pluveto@users.noreply.github.com> Date: Sun, 23 Jun 2024 23:24:26 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 397a7e2..59f9bea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,15 +50,17 @@ jobs: if: matrix.os == 'windows-latest' run: choco install make - - name: Build - run: | - if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then - make linux - elif [ "${{ matrix.os }}" == "windows-latest" ]; then - make windows - elif [ "${{ matrix.os }}" == "macos-13" ]; then - make macos - fi + - name: Build on Ubuntu + if: matrix.os == 'ubuntu-latest' + run: make linux + + - name: Build on Windows + if: matrix.os == 'windows-latest' + run: make windows + + - name: Build on macOS + if: matrix.os == 'macos-13' + run: make macos - name: Upload build artifacts uses: actions/upload-artifact@v3