1name: coverity-scan 2on: 3 schedule: 4 - cron: '0 18 * * 1,4' # Bi-weekly at 18:00 UTC on Monday and Thursday 5 6jobs: 7 latest: 8 runs-on: ubuntu-latest 9 steps: 10 - uses: actions/checkout@v1 11 - name: Download Coverity Build Tool 12 run: | 13 wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=capstone-next" -O cov-analysis-linux64.tar.gz 14 mkdir cov-analysis-linux64 15 tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 16 env: 17 TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} 18 19 - name: Fixed world writable dirs 20 run: | 21 chmod go-w $HOME 22 sudo chmod -R go-w /usr/share 23 24 - name: Build with cov-build 25 run: | 26 export PATH=`pwd`/cov-analysis-linux64/bin:$PATH 27 cov-build --dir cov-int make 28 29 - name: Submit the result to Coverity Scan 30 run: | 31 tar czvf capstone.tgz cov-int 32 curl \ 33 --form project=capstone-next \ 34 --form token=$TOKEN \ 35 --form email=noreply@capstone-engine.org \ 36 --form file=@capstone.tgz \ 37 --form version=trunk \ 38 --form description="capstone" \ 39 https://scan.coverity.com/builds?project=capstone-next 40 env: 41 TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} 42