2023-11-12 13:40:24 -07:00
|
|
|
name: coverity
|
2021-05-04 20:44:01 -07:00
|
|
|
on:
|
|
|
|
schedule:
|
2022-05-20 04:12:00 -07:00
|
|
|
- cron: '10 0 * * *' # Run every day at 00:10
|
2021-05-04 20:44:01 -07:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
scan:
|
2022-05-28 10:41:48 -07:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-04 20:44:01 -07:00
|
|
|
steps:
|
2023-09-04 05:51:40 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-11-30 04:05:13 -07:00
|
|
|
- uses: ./.github/actions/setup
|
2021-05-04 20:44:01 -07:00
|
|
|
|
|
|
|
- name: Download Coverity
|
|
|
|
run: |
|
|
|
|
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=neovim%2Fneovim" -O coverity_tool.tgz
|
|
|
|
mkdir cov-scan
|
2021-05-05 09:54:17 -07:00
|
|
|
tar ax -f coverity_tool.tgz --strip-components=1 -C cov-scan
|
2021-05-04 20:44:01 -07:00
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build dependencies
|
|
|
|
run: make deps
|
|
|
|
|
|
|
|
- name: Build/scan neovim
|
|
|
|
run: |
|
|
|
|
env PATH=$(pwd)/cov-scan/bin:$PATH cov-build --dir cov-int make
|
|
|
|
|
|
|
|
- name: Submit results
|
|
|
|
run: |
|
|
|
|
tar zcf cov-scan.tgz cov-int
|
|
|
|
curl --form token=$TOKEN \
|
|
|
|
--form email=$EMAIL \
|
|
|
|
--form file=@cov-scan.tgz \
|
|
|
|
--form version="$(git rev-parse HEAD)" \
|
2022-12-11 17:53:07 -07:00
|
|
|
--form description="Daily GHA scan" \
|
2021-05-04 20:44:01 -07:00
|
|
|
'https://scan.coverity.com/builds?project=neovim%2Fneovim'
|
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
|
|
EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}
|