sanitizer.yml 927 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: sanitizer
  2. on: [push, pull_request]
  3. jobs:
  4. linux:
  5. timeout-minutes: 10
  6. strategy:
  7. matrix:
  8. compiler: [clang++]
  9. id_type: [uint32, uint64]
  10. cxx_std: [cxx_std_17, cxx_std_20]
  11. include:
  12. - id_type: uint64
  13. id_type_variable: -DENTT_ID_TYPE=std::uint64_t
  14. - cxx_std: cxx_std_20
  15. cxx_std_variable: -DENTT_CXX_STD=cxx_std_20
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Compile tests
  20. working-directory: build
  21. env:
  22. CXX: ${{ matrix.compiler }}
  23. run: |
  24. cmake -DENTT_USE_SANITIZER=ON -DENTT_BUILD_TESTING=ON -DENTT_BUILD_LIB=ON -DENTT_BUILD_EXAMPLE=ON ${{ matrix.id_type_variable }} ${{ matrix.cxx_std_variable }} ..
  25. make -j4
  26. - name: Run tests
  27. working-directory: build
  28. env:
  29. CTEST_OUTPUT_ON_FAILURE: 1
  30. run: ctest --timeout 30 -C Debug -j4