fix: make lint&ci happy

This commit is contained in:
源文雨 2025-10-01 00:21:11 +08:00
parent 324a0022a7
commit 4aace203cf
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ jobs:
GOARCH: ${{ matrix.goarch }}
IS_PR: ${{ !!github.head_ref }}
run: |
go generate ./...
GOOS= GOARCH= go generate ./...
if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi
if $IS_PR ; then echo $PR_PROMPT; fi
export BINARY_NAME="$BINARY_PREFIX$GOOS_$GOARCH$BINARY_SUFFIX"

View File

@ -36,7 +36,7 @@ jobs:
- name: Tidy Modules
run: |
go mod tidy
go generate ./...
go generate main.go
- name: golangci-lint
uses: golangci/golangci-lint-action@master

View File

@ -16,7 +16,7 @@ jobs:
- name: Tidy Modules
run: |
go mod tidy
go generate ./...
go generate main.go
- name: Run Lint
uses: golangci/golangci-lint-action@master