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