1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-04 23:40:26 +08:00

fix: -checklinkname=0

This commit is contained in:
源文雨
2025-02-01 10:03:10 +08:00
parent e6298d3459
commit 82937b9b10
2 changed files with 12 additions and 12 deletions

View File

@@ -23,10 +23,10 @@ jobs:
run: sed -i 's/false/true/g' config/global.go
- name: Build
run: go build -v ./...
run: go build -checklinkname=0 -v ./...
- name: Test
run: sudo go test $(go list ./...) # ip test needs sudo
run: sudo go test -checklinkname=0 $(go list ./...) # ip test needs sudo
lint:
name: Lint

View File

@@ -33,25 +33,25 @@ jobs:
run: go mod tidy
- name: Build linux-x64
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o artifacts/wg-linux-x64 -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-x64 -trimpath
- name: Build linux-x86
run: CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -o artifacts/wg-linux-x86 -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-x86 -trimpath
- name: Build windows-x64
run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o artifacts/wg-windows-x64.exe -trimpath
run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-windows-x64.exe -trimpath
- name: Build windows-x86
run: CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -o artifacts/wg-windows-x86.exe -trimpath
run: CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-windows-x86.exe -trimpath
- name: Build arm64
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -ldflags="-s -w" -o artifacts/wg-linux-arm64 -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GOARM=7 go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-arm64 -trimpath
- name: Build armv6
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -o artifacts/wg-linux-armv6 -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-armv6 -trimpath
- name: Build mips
run: CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags="-s -w" -o artifacts/wg-linux-mips -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-mips -trimpath
- name: Build mips-softfloat
run: CGO_ENABLED=0 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags="-s -w" -o artifacts/wg-linux-mips-softfloat -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-mips-softfloat -trimpath
- name: Build mipsel
run: CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags="-s -w" -o artifacts/wg-linux-mipsel -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-mipsel -trimpath
- name: Build mipsel-softfloat
run: CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags="-s -w" -o artifacts/wg-linux-mipsel-softfloat -trimpath
run: CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags="-s -w" -checklinkname=0 -o artifacts/wg-linux-mipsel-softfloat -trimpath
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2