Skip to content

Commit 96df51d

Browse files
authored
Merge pull request #1238 from strukturag/fix-coverity
Fix coverity build.
2 parents 66bdcdc + d067859 commit 96df51d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/coverity.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ name: coverity
33
on:
44
push:
55
branches: [ coverity ]
6+
pull_request:
7+
branches: [ master ]
68

79
jobs:
810
scan:
911
runs-on: ubuntu-20.04
1012
env:
1113
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
1214
WITH_AOM: 1
15+
WITH_DAV1D: 1
1316
WITH_GRAPHICS: 1
1417
WITH_LIBDE265: 1
18+
WITH_RAV1E: 1
1519
WITH_X265: 1
1620
steps:
1721
- uses: actions/checkout@v4
@@ -21,7 +25,7 @@ jobs:
2125
with:
2226
path: |
2327
coverity_tool.tar.gz
24-
key: ${{ runner.os }}
28+
key: coverity_tool-${{ runner.os }}
2529

2630
- name: Download Coverity build tool
2731
run: |
@@ -39,10 +43,13 @@ jobs:
3943
4044
- name: Build with Coverity build tool
4145
run: |
42-
export PATH=`pwd`/coverity_tool/bin:$PATH
43-
cov-build --dir cov-int make
46+
export PATH=$(pwd)/coverity_tool/bin:$PATH
47+
export PKG_CONFIG_PATH="$(pwd)/libde265/dist/lib/pkgconfig/:$(pwd)/third-party/rav1e/dist/lib/pkgconfig/:$(pwd)/third-party/dav1d/dist/lib/x86_64-linux-gnu/pkgconfig/"
48+
cmake --preset=develop .
49+
cov-build --dir cov-int make -j$(nproc)
4450
4551
- name: Submit build result to Coverity Scan
52+
if: github.ref == 'refs/heads/coverity'
4653
run: |
4754
tar czvf libheif.tar.gz cov-int
4855
curl --form token=$TOKEN \

0 commit comments

Comments
 (0)