Skip to content

Submit Coverity scan #18

Submit Coverity scan

Submit Coverity scan #18

name: Submit Coverity scan
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1,4'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: octokit/request-action@v2.x
id: check_last_run
with:
route: GET /repos/${{github.repository}}/actions/workflows/coverity-submit.yml/runs?per_page=1&status=completed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "echo Last daily build: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}"
outputs:
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}
coverity:
needs: [check]
if: needs.check.outputs.last_sha != github.sha
runs-on: ubuntu-latest
environment: coverity
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
- name: Configure build
run: cmake -B build -S . -DGUI=OFF
- uses: vapier/coverity-scan-action@v1.8.0
with:
command: cmake --build build --target ausaxs ausaxs_md -j12
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}