add CI files to build & release
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
when:
|
||||
- event: [push, pull_request]
|
||||
branch: [main, master]
|
||||
|
||||
steps:
|
||||
build:
|
||||
image: golang:1.26-alpine3.23
|
||||
commands:
|
||||
- go mod download
|
||||
- CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o /dev/null ./...
|
||||
- echo "Build successful"
|
||||
Reference in New Issue
Block a user