Home | History | Annotate | Line # | Download | only in workflows
      1 name: Sanitizer checks
      2 
      3 on:
      4   pull_request:
      5     paths:
      6       - '**'
      7       - '!docs/**'
      8       - '!.**'
      9       - '.github/workflows/sanitizer.yml'
     10   push:
     11     branches:
     12       - v[0-9].*
     13       - master
     14 
     15 jobs:
     16   sanitizers:
     17     runs-on: ubuntu-latest
     18     steps:
     19       - uses: actions/checkout@v2
     20       - name: Setup
     21         run: |
     22           sudo apt-get install ninja-build
     23       - name: Envinfo
     24         run: npx envinfo
     25       - name: TSAN Build
     26         run: |
     27           mkdir build-tsan
     28           (cd build-tsan && cmake .. -G Ninja -DBUILD_TESTING=ON -DTSAN=ON -DCMAKE_BUILD_TYPE=Release)
     29           cmake --build build-tsan
     30       - name: TSAN Test
     31         continue-on-error: true # currently permit failures
     32         run: |
     33           ./build-tsan/uv_run_tests_a
     34       - name: ASAN Build
     35         run: |
     36           mkdir build-asan
     37           (cd build-asan && cmake .. -G Ninja -DBUILD_TESTING=ON -DASAN=ON -DCMAKE_BUILD_TYPE=Debug)
     38           cmake --build build-asan
     39       - name: ASAN Test
     40         run: |
     41           ./build-asan/uv_run_tests_a
     42