Submit Coverity scan #9
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: Submit Coverity scan | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1,4' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: octokit/[email protected] | |
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/[email protected] | |
with: | |
command: cmake --build build --target ausaxs ausaxs_md -j12 | |
email: ${{ secrets.COVERITY_SCAN_EMAIL }} | |
token: ${{ secrets.COVERITY_SCAN_TOKEN }} |