From a77c29a1369c0d3c51678997763cc07dcac1c325 Mon Sep 17 00:00:00 2001 From: snowykami Date: Wed, 2 Oct 2024 23:25:22 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d477a78..8f9f5ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,8 @@ jobs: strategy: matrix: go-version: [1.22] - os: [ubuntu-latest, windows-latest] - arch: [ "amd64", "arm64", "arm", "386" ] + os: [ubuntu-latest, windows-latest, macos-latest] + arch: [amd64, arm64, arm, 386, ppc64, ppc64le, mips, mipsle, mips64, mips64le, s390x, riscv64] steps: - name: Checkout code @@ -41,12 +41,13 @@ jobs: - name: Build run: | - GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows'}} + GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows' || 'darwin' }} GOARCH=${{ matrix.arch }} - go build -o build/${{ matrix.os }}/server-status-server + go build -o build/${{ matrix.os }}-${{ matrix.arch }}/server-status-server cmd/main.go - name: Upload binaries uses: actions/upload-artifact@v3 with: - name: server-status-server-${{ matrix.os }}-${{ matrix.go-version }} - path: build/${{ matrix.os }}/server-status-server \ No newline at end of file + name: server-status-server-${{ matrix.os }}-${{ matrix.arch }} + path: build/${{ matrix.os }}-${{ matrix.arch }}/server-status-server + if-no-files-found: warn \ No newline at end of file