From e794d831725fd4550149eb65a182c28f1d3b5233 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 5 Oct 2024 06:07:49 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E5=A4=8D=E5=9C=86?= =?UTF-8?q?=E8=A7=92=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d5640e..a0ccf88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,14 @@ jobs: strategy: matrix: go-version: [1.22] - os: [ubuntu-latest, windows-latest] + os: [linux, windows, darwin] arch: [amd64, arm64, arm, 386] +# darwin不含32位 + exclude: + - os: darwin + arch: 386 + - os: darwin + arch: arm steps: - name: Checkout code @@ -51,6 +57,6 @@ jobs: - name: Upload binaries uses: actions/upload-artifact@v3 with: - name: server-status-server-${{ matrix.os }}-${{ matrix.arch }} - path: build/${{ matrix.os }}-${{ matrix.arch }}/server-status-server + name: server-status-server-${{ env.GOOS }}-${{ env.GOARCH }} + path: build/${{ env.GOOS }}-${{ env.GOARCH }}/server-status-server* if-no-files-found: warn \ No newline at end of file