-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (31 loc) · 989 Bytes
/
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
---
name: Coverity
on:
push:
branches: master
jobs:
coverity:
if: github.repository == 'kdudka/predator'
name: Coverity Scan
runs-on: ubuntu-latest
env:
CC: /usr/bin/gcc
CXX: /usr/bin/g++
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
GCC_HOST_VERSION="$(/usr/bin/gcc --version | grep -oP '\d*' | head -n1)"
sudo apt update
sudo apt install -y "g++-$GCC_HOST_VERSION-multilib" \
"gcc-$GCC_HOST_VERSION-multilib" \
"gcc-$GCC_HOST_VERSION-plugin-dev" \
libboost-dev
- name: Coverity scan
uses: vapier/coverity-scan-action@v1
with:
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
project: kdudka/predator
command: ./switch-host-gcc.sh "${{ env.CC }}"