test: refactor codebase for improved readability and efficiency

- Modify the `test-tags` to be more readable by placing each tag on a separate line
- Add `--ldflags="-checklinkname=0"` to the `-tags` parameter for `sonic avx`

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2025-03-18 23:11:26 +08:00
parent 6d999ec344
commit 2e5ba860d1
No known key found for this signature in database

View File

@ -35,7 +35,13 @@ jobs:
os: [ubuntu-latest, macos-latest]
go: ["1.23", "1.24"]
test-tags:
["", "-tags nomsgpack", '-tags "sonic avx"', "-tags go_json", "-race"]
[
"",
"-tags nomsgpack",
'--ldflags="-checklinkname=0" -tags "sonic avx"',
"-tags go_json",
"-race",
]
include:
- os: ubuntu-latest
go-build: ~/.cache/go-build