Skip to content

Commit edc462d

Browse files
committed
Enable ASan build in the GitHub CI
Signed-off-by: Daiki Ueno <[email protected]>
1 parent 2e20ea8 commit edc462d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yml

+9
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ jobs:
3636
run: go test -gcflags=all=-d=checkptr -count 10 -v ./...
3737
env:
3838
GO_OPENSSL_VERSION_OVERRIDE: ${{ matrix.openssl-version }}
39+
- name: Run Test with address sanitizer
40+
run: |
41+
ok=true
42+
for t in $(go test ./... -list=. | grep '^Test'); do
43+
go test ./... -gcflags=all=-d=checkptr -asan -run $t -v || ok=false
44+
done
45+
$ok
46+
env:
47+
GO_OPENSSL_VERSION_OVERRIDE: ${{ matrix.openssl-version }}

0 commit comments

Comments
 (0)