From daac74c4546ff4bfc21e0323094e8d162d20fdec Mon Sep 17 00:00:00 2001 From: snowykami Date: Thu, 3 Oct 2024 19:55:52 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E9=80=9F?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E9=94=99=E8=AF=AF=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 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaf471b..32fd482 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,18 +39,15 @@ jobs: - name: Install dependencies run: go mod tidy - - name: Set up build environment - run: | - echo "GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows' || 'darwin' }}" >> $GITHUB_ENV - echo "GOARCH=${{ matrix.arch }}" >> $GITHUB_ENV - - name: Build run: | + GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows'}} + GOARCH=${{ matrix.arch }} go build -o build/${{ GOOS }}-${{ matrix.arch }}/server-status-server main.go - name: Upload binaries uses: actions/upload-artifact@v3 with: - name: server-status-server-${{ GOOS }}-${{ matrix.arch }} - path: build/${{ GOOS }}-${{ matrix.arch }}/server-status-server + 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