This repository was archived by the owner on Jan 10, 2025. It is now read-only.
coverity-scan #400
This file contains hidden or 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: '00 00 * * 0,3' # Runs at 00:00 UTC on Sun and Wed | |
jobs: | |
latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download Coverity Build Tool | |
run: | | |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=Nomade040%2Fnmd" -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: Fixed world writable dirs | |
run: | | |
chmod go-w $HOME | |
sudo chmod -R go-w /usr/share | |
- name: Build with cov-build | |
run: | | |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH | |
cov-build --dir cov-int gcc -std=c89 examples/assembly_example.c | |
- name: Submit the result to Coverity Scan | |
run: | | |
tar czvf nmd.tgz cov-int | |
curl --form token=$TOKEN \ | |
--form [email protected] \ | |
--form [email protected] \ | |
--form version=trunk \ | |
--form description="`git rev-parse --short "$GITHUB_SHA"`" \ | |
https://scan.coverity.com/builds?project=Nomade040%2Fnmd | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |