1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-09 18:40:36 +08:00

fix: -checklinkname=0

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

View File

@@ -11,7 +11,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@master
with:
go-version: ^1.20
go-version: ^1.23
- name: Check out code into the Go module directory
uses: actions/checkout@master
@@ -23,10 +23,10 @@ jobs:
run: sed -i 's/false/true/g' config/global.go
- name: Build
run: go build -checklinkname=0 -v ./...
run: go build -ldflags=-checklinkname=0 -v ./...
- name: Test
run: sudo go test -checklinkname=0 $(go list ./...) # ip test needs sudo
run: sudo go test -ldflags=-checklinkname=0 $(go list ./...) # ip test needs sudo
lint:
name: Lint
@@ -35,7 +35,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@master
with:
go-version: ^1.20
go-version: ^1.23
- name: Check out code into the Go module directory
uses: actions/checkout@master