Coverity #764
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 | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
- release/* | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '37 3 * * 6' | |
jobs: | |
coverity: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Boost setup | |
run: sudo apt update; sudo apt install libboost-container-dev | |
- name: Coverity setup | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
run: | | |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=oknenavin%2Fcxon" -O coverity-tool.tgz | |
mkdir coverity-tool | |
tar xzf coverity-tool.tgz --strip 1 -C coverity-tool | |
- name: Build | |
env: | |
CXXFLAGS: -std=c++17 | |
run: | | |
export PATH=`pwd`/coverity-tool/bin:$PATH | |
cov-build --dir cov-int make -j | |
- name: Submit | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
MAIL: ${{ secrets.CXON_MAIL }} | |
run: | | |
tar czvf cxon.tgz cov-int | |
curl \ | |
--form token=$TOKEN \ | |
--form email=$MAIL \ | |
--form file=@cxon.tgz \ | |
--form version="Current" \ | |
--form description="Current Branch" \ | |
https://scan.coverity.com/builds?project=oknenavin%2Fcxon |