From 366848101192e2021e1e6085d7000c4521ea40d8 Mon Sep 17 00:00:00 2001 From: snowykami Date: Thu, 3 Oct 2024 19:54:01 +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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec937e3..aaf471b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,10 +39,13 @@ 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