Skip to content

Commit e041ceb

Browse files
authored
ci: test with asan enabled (#86)
1 parent 1fadcc6 commit e041ceb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- name: Check out code
1717
uses: actions/checkout@v2
1818

19+
- name: Set up Clang
20+
uses: egor-tensin/setup-clang@v1
21+
1922
- name: Set up Node.js
2023
uses: actions/setup-node@v1
2124
with:
@@ -51,7 +54,8 @@ jobs:
5154
run: |
5255
wget https://raw.githubusercontent.com/api7/apisix-build-tools/master/build-apisix-base.sh
5356
chmod +x build-apisix-base.sh
54-
OR_PREFIX=$OPENRESTY_PREFIX cc_opt="-Werror" ./build-apisix-base.sh latest
57+
OR_PREFIX=$OPENRESTY_PREFIX CC="clang -fsanitize=address -fcolor-diagnostics -Qunused-arguments" \
58+
cc_opt="-Werror" ./build-apisix-base.sh latest
5559
5660
- name: Script
5761
run: |

0 commit comments

Comments
 (0)