-
Notifications
You must be signed in to change notification settings - Fork 46
51 lines (45 loc) · 1.77 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on:
schedule:
- cron: '0 0 1,15 * *'
workflow_dispatch:
permissions:
contents: read
env:
COVERITY_SCAN_PROJECT_NAME: linuxwacom/xf86-input-wacom
COVERITY_SCAN_NOTIFICATION_EMAIL: [email protected]
COVERITY_SCAN_BUILD_COMMAND_PREPEND:
COVERITY_SCAN_BUILD_COMMAND: make
COVERITY_SCAN_BRANCH_PATTERN: .*
COVERITY_URL: https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
jobs:
coverity:
runs-on: ubuntu-20.04
environment: coverity
if: ${{ github.repository == '$COVERITY_SCAN_PROJECT_NAME' }}
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Set up build environment / dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
xutils-dev xserver-xorg-dev libx11-dev libxi-dev \
libxrandr-dev libxinerama-dev libudev-dev
mkdir _build
- name: Coverity download
run: |
curl -fs "$COVERITY_URL" > coverity.sh
sed -i 's/"$status_code" != "201"/"$status_code" -lt 200 -o "$status_code" -ge 300/' coverity.sh
chmod +x coverity.sh
- name: Coverity build / upload
run: |
pushd _build > /dev/null
# We don't want our CFLAGS (especially -Werror) to apply at `configure`
# time so short-circuit our environment at that moment and provide the
# flags to `make` instead. Not doing so results in an incorrect config:
# 'checking for rint in -lm... no' because of a builtin-declaration-mismatch
# warning (error) in the auto-generated feature test.
CFLAGS="" ../autogen.sh --disable-silent-rules
bash ../coverity.sh
popd > /dev/null