sanitizer.yml 910 B

123456789101112131415161718192021222324252627282930313233
  1. name: sanitizer
  2. on: [push, pull_request]
  3. jobs:
  4. clang:
  5. timeout-minutes: 15
  6. strategy:
  7. matrix:
  8. compiler: [clang++]
  9. id_type: ["std::uint32_t", "std::uint64_t"]
  10. cxx_std: [cxx_std_17, cxx_std_20]
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v4
  14. # temporary workaround for https://github.com/actions/runner-images/issues/8659
  15. - uses: mjp41/workaround8649@c8550b715ccdc17f89c8d5c28d7a48eeff9c94a8
  16. - name: Compile tests
  17. working-directory: build
  18. env:
  19. CXX: ${{ matrix.compiler }}
  20. run: |
  21. cmake -DENTT_USE_SANITIZER=ON -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON -DENTT_CXX_STD=${{ matrix.cxx_std }} -DENTT_ID_TYPE=${{ matrix.id_type }} ..
  22. make -j4
  23. - name: Run tests
  24. working-directory: build
  25. env:
  26. CTEST_OUTPUT_ON_FAILURE: 1
  27. run: ctest -C Debug -j4