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
dae58842e5
commit
1d93ddaf45
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@ -20,12 +20,11 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.22]
|
goos: [ linux, windows, darwin ]
|
||||||
os: [linux, windows, darwin]
|
goarch: [ amd64, arm64, arm, "386" ]
|
||||||
arch: [amd64, arm64, arm, 386]
|
|
||||||
exclude:
|
exclude:
|
||||||
- os: darwin
|
- os: darwin
|
||||||
arch: 386
|
arch: "386"
|
||||||
- os: darwin
|
- os: darwin
|
||||||
arch: arm
|
arch: arm
|
||||||
|
|
||||||
@ -36,7 +35,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: 1.22
|
||||||
|
|
||||||
- name: Auth For Private Dependencies
|
- 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"
|
||||||
@ -44,25 +43,19 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
|
|
||||||
- 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
|
- name: Compile
|
||||||
|
env:
|
||||||
|
GOOS: ${{ matrix.goos }}
|
||||||
|
GOARCH: ${{ matrix.goarch }}
|
||||||
|
CGO_ENABLED: 0
|
||||||
run: |
|
run: |
|
||||||
CGO_ENABLED=0
|
|
||||||
OUTPUT_NAME=server-status-server
|
OUTPUT_NAME=server-status-server
|
||||||
if [ "${{ matrix.os }}" == "windows" ]; then OUTPUT_NAME="${OUTPUT_NAME}.exe"; fi
|
if [ "${{ matrix.goos }}" == "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
|
||||||
|
|
||||||
- name: Upload binaries
|
- name: Upload binaries
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: server-status-server-${{ matrix.os }}-${{ matrix.arch }}
|
name: server-status-server-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
path: build/${{ matrix.os }}-${{ matrix.arch }}/server-status-server*
|
path: build/${{ matrix.goos }}-${{ matrix.goarch }}/server-status-server*
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
Loading…
x
Reference in New Issue
Block a user