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
fc7c2264bb
commit
dae58842e5
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Build and Cross-Compile
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -38,17 +38,24 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Auth For Private Repo
|
||||
- name: Auth For Private Dependencies
|
||||
run: git config --global url."https://${{ secrets.GITEA_TOKEN }}@git.liteyuki.icu".insteadOf "https://git.liteyuki.icu"
|
||||
|
||||
- name: Install dependencies
|
||||
run: go mod tidy
|
||||
|
||||
- name: Build
|
||||
- name: Set environment variables
|
||||
run: |
|
||||
if [ "${{ matrix.os }}" == "windows" ]; then
|
||||
echo "GOOS=windows" >> $GITHUB_ENV
|
||||
else
|
||||
echo "GOOS=linux" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "GOARCH=${{ matrix.arch }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Compile
|
||||
run: |
|
||||
CGO_ENABLED=0
|
||||
GOOS=${{ matrix.os }}
|
||||
GOARCH=${{ matrix.arch }}
|
||||
OUTPUT_NAME=server-status-server
|
||||
if [ "${{ matrix.os }}" == "windows" ]; then OUTPUT_NAME="${OUTPUT_NAME}.exe"; fi
|
||||
go build -o build/${GOOS}-${GOARCH}/${OUTPUT_NAME} main.go
|
||||
|
Loading…
x
Reference in New Issue
Block a user