forked from igraph/igraph
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1.01 KB
/
coverity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# https://scan.coverity.com/projects/igraph-igraph
name: Coverity
# Coverity only allows a few builds per day.
# Build once at 3 AM UTC every day.
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
coverity:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install bison flex libarpack2-dev libglpk-dev libgmp-dev libxml2-dev
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create build environment
run: cmake -E make_directory ${{github.workspace}}/build
# Compile in Debug configuration to preserve assertions.
- name: Configure
run: cmake -G"Unix Makefiles" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -DFLEX_KEEP_LINE_NUMBERS=ON -DUSE_CCACHE=OFF
- uses: vapier/coverity-scan-action@v1
with:
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
command: cmake --build ${{github.workspace}}/build --parallel