mod(workflow): add CGO_ENABLED=0 and GOOS=linux when building release
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 2m10s
Release Go Application / Release go project (release) Successful in 37s

This commit is contained in:
2024-11-01 15:09:16 +01:00
parent 1b12a22fc5
commit 19f80c7262

View File

@@ -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: