@@ -48,24 +48,26 @@ jobs:
4848 - name : Install Taskfile support
4949 uses : arduino/setup-task@v2
5050
51- - name : Build
51+ - name : Build (CodeQL-instrumented)
5252 shell : bash
5353 env :
54- # Prevent Go toolchain re-exec which breaks CodeQL tracing.
55- # When GOTOOLCHAIN is not "local", Go may re-exec to a different
56- # toolchain version, bypassing CodeQL's instrumented go binary.
5754 GOTOOLCHAIN : local
55+ GOWORK : off
56+ GO_VERSIONS : " 1.19"
57+ COMPILECHECK_USE_DOCKER : " 0"
5858 run : |
59- echo "=== Diagnostics ==="
60- echo "CODEQL_EXTRACTOR_GO_BUILD_TRACING: $CODEQL_EXTRACTOR_GO_BUILD_TRACING"
61- echo "PATH: $PATH"
62- echo "which go: $(which go)"
63- echo "go version: $(go version)"
64- go env GOTOOLCHAIN GOROOT GOPATH GOVERSION
65- echo "=== Building ==="
66- # Run go build directly (not via task) to ensure CodeQL can trace it.
67- # The task build command includes subtasks that may override GOTOOLCHAIN.
6859 go build ./...
60+ go build ${BUILD_TAGS} ./...
61+ go test -short ${BUILD_TAGS} -run ^$$ ./...
62+
63+ go test -v ./internal/test/compilecheck -run '^TestCompileCheck/golang:1.19$'
64+
65+ GOOS=linux GOARCH=386 go build ./...
66+ GOOS=linux GOARCH=arm go build ./...
67+ GOOS=linux GOARCH=arm64 go build ./...
68+ GOOS=linux GOARCH=amd64 go build ./...
69+ GOOS=linux GOARCH=ppc64le go build ./...
70+ GOOS=linux GOARCH=s390x go build ./...
6971
7072 - name : Perform CodeQL Analysis
7173 uses : github/codeql-action/analyze@v4
0 commit comments