Update Go build command in GitHub workflow

The GitHub workflow script has been updated to use a different command for building the Go application. This will ensure that the application is built with necessary parameters for correct operation and proper linking of static libraries.
This commit is contained in:
Winni Neessen 2024-03-17 20:23:29 +01:00
parent ef8e334df0
commit b289d440da
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -83,7 +83,7 @@ jobs:
- run: |
echo "Build Application using Go"
/usr/bin/env GOTOOLCHAIN=go1.22.1+auto go build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
/usr/bin/env GOTOOLCHAIN=go1.22.1+auto go build -a -installsuffix cgo -ldflags '-w -s -extldflags "-static"' -o apg github.com/wneessen/apg-go/cmd/apg
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3