coverity-scan #1182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: coverity-scan | |
on: | |
schedule: | |
- cron: '0 10 * * *' # Once a day | |
jobs: | |
latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install libraries | |
run: | |
sudo apt-get update && | |
sudo apt-get install -y --no-install-recommends | |
libopus-dev | |
libsodium-dev | |
libvpx-dev | |
- name: Download Coverity Build Tool | |
run: | | |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=TokTok/c-toxcore" -O cov-analysis-linux64.tar.gz | |
mkdir cov-analysis-linux64 | |
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
- name: Run autoreconf | |
run: autoreconf -fi | |
- name: Configure | |
run: ./configure | |
- name: Build with cov-build | |
run: cov-analysis-linux64/bin/cov-build --dir cov-int make | |
- name: Submit the result to Coverity Scan | |
run: | |
tar czvf c-toxcore.tgz cov-int && | |
curl | |
--form project=TokTok/c-toxcore | |
--form token=$TOKEN | |
--form [email protected] | |
--form [email protected] | |
--form version="$(git rev-list --count HEAD)" | |
--form description="CI build of $(git rev-parse --abbrev-ref HEAD) branch" | |
https://scan.coverity.com/builds | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |