mirror of
https://github.com/snowykami/server-status-server.git
synced 2025-06-06 07:05:22 +00:00
🐛 修复网速单位错误的问题
This commit is contained in:
parent
4a34bd8cd5
commit
3668481011
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -39,10 +39,13 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go mod tidy
|
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
|
- name: Build
|
||||||
run: |
|
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
|
go build -o build/${{ GOOS }}-${{ matrix.arch }}/server-status-server main.go
|
||||||
|
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
|
Loading…
x
Reference in New Issue
Block a user