sanitizer.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: C/C++ Sanitizer
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. job1:
  9. name: adress-sanitizer
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - uses: lukka/get-cmake@latest
  14. - uses: lukka/set-shell-env@v1
  15. with:
  16. CXX: clang++
  17. CC: clang
  18. - name: configure and build
  19. uses: lukka/run-cmake@v2
  20. with:
  21. cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
  22. cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
  23. cmakeAppendedArgs: '-GNinja -DCMAKE_BUILD_TYPE=Debug -DASSIMP_ASAN=ON'
  24. buildWithCMakeArgs: '-- -v'
  25. buildDirectory: '${{ github.workspace }}/build/'
  26. - name: test
  27. run: cd build/bin && ./unit
  28. shell: bash
  29. job2:
  30. name: undefined-behavior-sanitizer
  31. runs-on: ubuntu-latest
  32. steps:
  33. - uses: actions/checkout@v2
  34. - uses: lukka/get-cmake@latest
  35. - uses: lukka/set-shell-env@v1
  36. with:
  37. CXX: clang++
  38. CC: clang
  39. - name: configure and build
  40. uses: lukka/run-cmake@v2
  41. with:
  42. cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
  43. cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
  44. cmakeAppendedArgs: '-GNinja -DCMAKE_BUILD_TYPE=Debug -DASSIMP_UBSAN=ON'
  45. buildWithCMakeArgs: '-- -v'
  46. buildDirectory: '${{ github.workspace }}/build/'
  47. - name: test
  48. run: cd build/bin && ./unit
  49. shell: bash