Skip to content

Commit 1beb955

Browse files
Run tests with ASAN (#706)
* Run tests with ASAN * Disable ASAN on Windows tests * Fix windows non-ASAN build
1 parent bdb3150 commit 1beb955

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,18 @@ jobs:
5252
token: ${{ secrets.GITHUB_TOKEN }}
5353
submodules: recursive
5454

55+
- name: Build Tests (ASAN)
56+
if: matrix.os != 'windows-latest'
57+
run: |
58+
mkdir build && cd build
59+
cmake .. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DLSP_BUILD_ASAN:BOOL=ON
60+
cmake --build . --target Luau.LanguageServer.Test -j 3
61+
5562
- name: Build Tests
63+
if: matrix.os == 'windows-latest'
5664
run: |
5765
mkdir build && cd build
58-
cmake ..
66+
cmake .. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
5967
cmake --build . --target Luau.LanguageServer.Test -j 3
6068
6169
- name: Run Tests (Old Solver)
@@ -79,7 +87,7 @@ jobs:
7987
- name: Build Tool
8088
run: |
8189
mkdir build && cd build
82-
cmake ..
90+
cmake .. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DLSP_BUILD_ASAN:BOOL=ON
8391
cmake --build . --target Luau.LanguageServer.CLI -j 3
8492
8593
- name: Regenerate Types
@@ -174,7 +182,7 @@ jobs:
174182
- name: Build Tool
175183
run: |
176184
mkdir build && cd build
177-
cmake ..
185+
cmake .. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DLSP_BUILD_ASAN:BOOL=ON
178186
cmake --build . --target Luau.LanguageServer.CLI -j 3
179187
180188
- name: Run Luau Analyze (Plugin Source)

0 commit comments

Comments
 (0)