Skip to content

Commit f0211fb

Browse files
authored
Linux scans with Coverity (#548)
1 parent 6f145ce commit f0211fb

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/checks.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,31 @@ jobs:
4747
--form version="$GITHUB_SHA" \
4848
--form description="Automatic macOS build" \
4949
https://scan.coverity.com/builds?project=hidapi
50+
51+
52+
coverity-ubuntu:
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- uses: actions/checkout@v3
57+
with:
58+
path: src
59+
- name: Install dependencies
60+
run: sudo apt install libudev-dev libusb-1.0-0-dev ninja-build
61+
- name: Configure
62+
run: |
63+
cmake -B build -S src -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DHIDAPI_WITH_TESTS=ON -DHIDAPI_BUILD_HIDTEST=ON -DCMAKE_C_COMPILER=gcc
64+
- uses: vapier/coverity-scan-action@v1
65+
with:
66+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
67+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
68+
project: hidapi
69+
command: ninja
70+
working-directory: build
71+
description: 'Automatic Linux build'
72+
- name: Backup Coverity logs
73+
uses: actions/upload-artifact@v3
74+
with:
75+
name: coverity-logs-linux
76+
path: build/cov-int
77+
retention-days: 7

0 commit comments

Comments
 (0)