sanitizer.yml 756 B

123456789101112131415161718192021222324252627282930313233
  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. include:
  11. - id_type: uint64
  12. id_type_option: -DENTT_BUILD_UINT64=ON
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v2
  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 ${{ matrix.id_type_option }} ..
  22. make -j4
  23. - name: Run tests
  24. working-directory: build
  25. env:
  26. CTEST_OUTPUT_ON_FAILURE: 1
  27. run: ctest --timeout 10 -C Debug -j4