2021-05-04 20:44:01 -07:00
|
|
|
name: Coverity
|
|
|
|
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
|
2021-05-04 20:44:01 -07:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-02-13 10:26:01 -07:00
|
|
|
run: ./.github/scripts/install_deps.sh
|
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 }}
|