coverity.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # GitHub actions workflow.
  2. # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
  3. # https://scan.coverity.com/projects/google-breakpad
  4. name: Coverity Scan
  5. on:
  6. push:
  7. branches: [main]
  8. schedule:
  9. # The GH mirroring from Google GoB does not trigger push actions.
  10. # Fire it once a week to provide some coverage.
  11. - cron: '39 2 * * WED'
  12. # Allow for manual triggers from the web.
  13. workflow_dispatch:
  14. jobs:
  15. coverity:
  16. runs-on: ubuntu-latest
  17. env:
  18. CC: clang
  19. CXX: clang++
  20. steps:
  21. - name: Checkout depot_tools
  22. run: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git ../depot_tools
  23. - name: Checkout breakpad
  24. run: |
  25. set -xe
  26. PATH+=:$PWD/../depot_tools
  27. gclient config --unmanaged --name=src https://github.com/${{ github.repository }}
  28. gclient sync --no-history --nohooks
  29. - run: ./configure --disable-silent-rules
  30. working-directory: src
  31. - uses: vapier/coverity-scan-action@v1
  32. with:
  33. command: make -C src -O -j$(getconf _NPROCESSORS_CONF)
  34. email: ${{ secrets.COVERITY_SCAN_EMAIL }}
  35. token: ${{ secrets.COVERITY_SCAN_TOKEN }}