Update CodeQL workflow to include Go installation and building

The previous autobuild process has been disabled in the Github actions workflow. A new step for Go installation and manual building of the application using Go has been implemented, providing enhanced control and flexibility over the project's build process.
This commit is contained in:
Winni Neessen 2024-03-17 19:22:18 +01:00
parent 2af31dcb48
commit 043008a97d
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -80,8 +80,12 @@ jobs:
# If the Autobuild fails above, remove it and uncomment the following three lines. # If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
- name: Install Go
run: |
apt-get update; apt-get -y install go
- name: Build Application using Go
- run: | - run: |
echo "Run, Build Application using script"
go build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg go build -ldflags '-s -w' -o apg github.com/wneessen/apg-go/cmd/apg
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis