mirror of
https://github.com/snowykami/server-status-server.git
synced 2025-06-06 15:15:22 +00:00
✨ 修复圆角的问题
This commit is contained in:
parent
fc7c2264bb
commit
dae58842e5
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build and Cross-Compile
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -33,22 +33,29 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
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"
|
run: git config --global url."https://${{ secrets.GITEA_TOKEN }}@git.liteyuki.icu".insteadOf "https://git.liteyuki.icu"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go mod tidy
|
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: |
|
run: |
|
||||||
CGO_ENABLED=0
|
CGO_ENABLED=0
|
||||||
GOOS=${{ matrix.os }}
|
|
||||||
GOARCH=${{ matrix.arch }}
|
|
||||||
OUTPUT_NAME=server-status-server
|
OUTPUT_NAME=server-status-server
|
||||||
if [ "${{ matrix.os }}" == "windows" ]; then OUTPUT_NAME="${OUTPUT_NAME}.exe"; fi
|
if [ "${{ matrix.os }}" == "windows" ]; then OUTPUT_NAME="${OUTPUT_NAME}.exe"; fi
|
||||||
go build -o build/${GOOS}-${GOARCH}/${OUTPUT_NAME} main.go
|
go build -o build/${GOOS}-${GOARCH}/${OUTPUT_NAME} main.go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user