Turn off the CGO to make it static linked

This commit is contained in:
gzzchh
2020-11-08 14:42:55 +08:00
parent 4b17ac4f1c
commit 33e584b447
3 changed files with 6 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ jobs:
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: 0
run: |
go build -v -ldflags="-s -w -X github.com/pterodactyl/wings/system.Version=dev-${GIT_COMMIT:0:7}" -o build/wings_${{ matrix.goos }}_${{ matrix.goarch }} wings.go