Skip to content

Commit 6264939

Browse files
committed
reattempt with Taskfile
1 parent ecddd5e commit 6264939

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,10 @@ jobs:
4545
- name: Install Taskfile support
4646
uses: arduino/setup-task@v2
4747
- name: Build (CodeQL-instrumented)
48-
shell: bash
4948
env:
49+
# Prevent Go toolchain re-exec which breaks CodeQL tracing.
5050
GOTOOLCHAIN: local
51-
run: |
52-
go build ./...
53-
go build ${BUILD_TAGS} ./...
54-
go test -short ${BUILD_TAGS} -run ^$$ ./...
55-
56-
GO_VERSIONS="1.19" go test -v ./internal/test/compilecheck -run '^TestCompileCheck/golang:1.19$'
57-
58-
GOOS=linux GOARCH=386 go build ./...
59-
GOOS=linux GOARCH=arm go build ./...
60-
GOOS=linux GOARCH=arm64 go build ./...
61-
GOOS=linux GOARCH=amd64 go build ./...
62-
GOOS=linux GOARCH=ppc64le go build ./...
63-
GOOS=linux GOARCH=s390x go build ./...
51+
run: task build
6452
- name: Perform CodeQL Analysis
6553
uses: github/codeql-action/analyze@v4
6654
with:

Taskfile.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@ tasks:
2121
- task: cross-compile
2222
build-tests: go test -short ${BUILD_TAGS} -run ^$$ ./...
2323
compilecheck-119:
24-
dir: internal/test/compilecheck
24+
# Run from root directory to inherit GOTOOLCHAIN from caller (needed for CodeQL tracing).
2525
env:
26-
GOWORK: off
27-
GOTOOLCHAIN: auto
2826
GO_VERSIONS: "1.19"
29-
COMPILECHECK_USE_DOCKER: "0"
3027
cmds:
31-
- go mod download
32-
- go test -v -run '^TestCompileCheck/golang:1\.19$'
28+
- go test -v ./internal/test/compilecheck -run '^TestCompileCheck/golang:1\.19$'
3329
build-compile-check-all: bash etc/run-compile-check-test.sh
3430
build-aws-ecs-test: go test -c ./internal/test/aws -o aws.testbin
3531
cross-compile:

0 commit comments

Comments
 (0)