mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
cf7d37ad13
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Coverity
|
|
on:
|
|
schedule:
|
|
- cron: '10 0 * * *' # Run every day at 00:10
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: ./.github/scripts/install_deps.sh
|
|
|
|
- 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
|
|
tar ax -f coverity_tool.tgz --strip-components=1 -C cov-scan
|
|
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)" \
|
|
--form description="Daily GHA scan" \
|
|
'https://scan.coverity.com/builds?project=neovim%2Fneovim'
|
|
env:
|
|
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}
|