coverity.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: coverity
  2. on:
  3. schedule:
  4. - cron: '10 0 * * *' # Run every day at 00:10
  5. workflow_dispatch:
  6. jobs:
  7. scan:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v4
  11. - uses: ./.github/actions/setup
  12. - name: Download Coverity
  13. run: |
  14. wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=neovim%2Fneovim" -O coverity_tool.tgz
  15. mkdir cov-scan
  16. tar ax -f coverity_tool.tgz --strip-components=1 -C cov-scan
  17. env:
  18. TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
  19. - name: Build dependencies
  20. run: make deps
  21. - name: Build/scan neovim
  22. run: |
  23. env PATH=$(pwd)/cov-scan/bin:$PATH cov-build --dir cov-int make
  24. - name: Submit results
  25. run: |
  26. tar zcf cov-scan.tgz cov-int
  27. curl --form token=$TOKEN \
  28. --form email=$EMAIL \
  29. --form file=@cov-scan.tgz \
  30. --form version="$(git rev-parse HEAD)" \
  31. --form description="Daily GHA scan" \
  32. 'https://scan.coverity.com/builds?project=neovim%2Fneovim'
  33. env:
  34. TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
  35. EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}