mod(workflow): add CGO_ENABLED=0 and GOOS=linux when building release
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: go get .
|
||||
- name: Build
|
||||
run: go build -ldflags "-s -w" -o ./bin/serve main.go
|
||||
run: CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -o ./bin/serve main.go
|
||||
- name: Release build artifacts
|
||||
uses: akkuman/gitea-release-action@v1.3.2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user