File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : linux
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ jobs :
9
+ build :
10
+ # your existing build matrix (unchanged)...
11
+
12
+ build_osx :
13
+ # your existing macOS build job (unchanged)...
14
+
15
+ coverity_scan :
16
+ if : github.event_name == 'pull_request'
17
+ runs-on : ubuntu-latest
18
+ name : Coverity Scan
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ sudo apt-get update
25
+ sudo apt-get install -y curl build-essential cmake pkg-config libsystemd-dev
26
+
27
+ - name : Download Coverity Tool
28
+ run : |
29
+ curl -s -L --output coverity_tool.tgz "https://scan.coverity.com/download/linux64?token=${{ secrets.COVERITY_TOKEN }}&project=gabime%2Fspdlog"
30
+ mkdir coverity_tool
31
+ tar -C coverity_tool --strip-components=1 -xf coverity_tool.tgz
32
+ echo "$PWD/coverity_tool/bin" >> $GITHUB_PATH
33
+
34
+ - name : Build with Coverity
35
+ run : |
36
+ mkdir build && cd build
37
+ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17
38
+ cd ..
39
+ cov-build --dir cov-int make -C build -j4
40
+
41
+ - name : Submit results to Coverity
42
+ run : |
43
+ tar czf cov-int.tgz cov-int
44
+ curl --form token="${{ secrets.COVERITY_TOKEN }}" \
45
+
46
+ --form version="GitHub PR #${{ github.event.pull_request.number }}" \
47
+ --form description="CI run for PR" \
48
+ https://scan.coverity.com/builds?project=gabime%2Fspdlog
You can’t perform that action at this time.
0 commit comments