修复圆角的问题

This commit is contained in:
远野千束 2024-10-05 06:16:55 +08:00
parent fc7c2264bb
commit dae58842e5

View File

@ -1,4 +1,4 @@
name: Build and Cross-Compile name: Build
on: on:
push: push:
@ -38,17 +38,24 @@ jobs:
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