From 80bc9e505175a846703e766964fd6d5a13a0b7aa Mon Sep 17 00:00:00 2001 From: John Keiser Date: Mon, 17 Jul 2023 12:57:50 -0700 Subject: [PATCH] Run sanitizers in parallel --- .github/workflows/ubuntu20-sani.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu20-sani.yml b/.github/workflows/ubuntu20-sani.yml index b5bb0ccb1..b3ea65821 100644 --- a/.github/workflows/ubuntu20-sani.yml +++ b/.github/workflows/ubuntu20-sani.yml @@ -3,7 +3,7 @@ name: Ubuntu 20.04 CI (GCC 9) With Memory Sanitizer on: [push, pull_request] jobs: - ubuntu-build: + ubuntu-build-address-sanitizier: if: >- ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip github]') @@ -21,6 +21,17 @@ jobs: cmake -DSIMDJSON_SANITIZE=ON -DCMAKE_BUILD_TYPE=Debug -DSIMDJSON_GOOGLE_BENCHMARKS=OFF -DSIMDJSON_DEVELOPER_MODE=ON -DBUILD_SHARED_LIBS=OFF .. && cmake --build . && ctest -j --output-on-failure -LE explicitonly + ubuntu-build-undefined-sanitizer: + if: >- + ! contains(toJSON(github.event.commits.*.message), '[skip ci]') && + ! contains(toJSON(github.event.commits.*.message), '[skip github]') + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: dependencies/.cache + key: ${{ hashFiles('dependencies/CMakeLists.txt') }} - name: Use cmake with undefined sanitizer run: | mkdir builddebugundefsani &&