2021-07-27 18:08:18 -04:00
|
|
|
name: Sanitizer checks
|
|
|
|
|
2022-07-24 17:25:38 -04:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '**'
|
|
|
|
- '!docs/**'
|
|
|
|
- '!.**'
|
|
|
|
- '.github/workflows/sanitizer.yml'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- v[0-9].*
|
|
|
|
- master
|
2021-07-27 18:08:18 -04:00
|
|
|
|
|
|
|
jobs:
|
2022-01-04 21:04:05 -05:00
|
|
|
sanitizers:
|
2021-07-27 18:08:18 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-01-04 21:04:05 -05:00
|
|
|
- name: Setup
|
|
|
|
run: |
|
|
|
|
sudo apt-get install ninja-build
|
2021-07-27 18:08:18 -04:00
|
|
|
- name: Envinfo
|
|
|
|
run: npx envinfo
|
2022-07-24 17:25:38 -04:00
|
|
|
- name: TSAN Build
|
2022-01-04 21:04:05 -05:00
|
|
|
run: |
|
|
|
|
mkdir build-tsan
|
|
|
|
(cd build-tsan && cmake .. -G Ninja -DBUILD_TESTING=ON -DTSAN=ON -DCMAKE_BUILD_TYPE=Release)
|
|
|
|
cmake --build build-tsan
|
2022-07-24 17:25:38 -04:00
|
|
|
- name: TSAN Test
|
|
|
|
continue-on-error: true # currently permit failures
|
|
|
|
run: |
|
|
|
|
./build-tsan/uv_run_tests_a
|
|
|
|
- name: ASAN Build
|
2021-07-27 18:08:18 -04:00
|
|
|
run: |
|
2022-01-04 21:04:05 -05:00
|
|
|
mkdir build-asan
|
|
|
|
(cd build-asan && cmake .. -G Ninja -DBUILD_TESTING=ON -DASAN=ON -DCMAKE_BUILD_TYPE=Debug)
|
|
|
|
cmake --build build-asan
|
2022-07-24 17:25:38 -04:00
|
|
|
- name: ASAN Test
|
|
|
|
run: |
|
2022-01-04 21:04:05 -05:00
|
|
|
./build-asan/uv_run_tests_a
|