From c5f78d1e4ec7a3831cc9a6b3c3241e027976e9e2 Mon Sep 17 00:00:00 2001 From: heronimus Date: Thu, 19 Oct 2023 21:27:49 +0700 Subject: [PATCH] chore(ci): fix multiarch build args --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b97c32a..e377830 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,9 +37,7 @@ jobs: - name: Build ${{ matrix.goos }}/${{ matrix.goarch }} run: | output_name=world-cli_${{ matrix.goos }}_${{ matrix.goarch }} - if [ $GOOS = "windows" ]; then - output_name+='.exe' - fi + [ ${{ matrix.goos }} = "windows" ] && output_name+=".exe" env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o $output_name - name: Upload binary to Github artifact