🐛 添加构建工作流

This commit is contained in:
远野千束 2024-10-02 23:20:32 +08:00
parent e915b5cb85
commit e7ae5e1fcf

View File

@ -41,8 +41,8 @@ jobs:
- name: Build
run: |
GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows' || 'darwin' }}
GOARCH=amd64
GOOS=${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os == 'windows-latest' && 'windows'}}
GOARCH=${{ matrix.arch }}
go build -o build/${{ matrix.os }}/server-status-server
- name: Upload binaries