Skip to content

Commit

Permalink
Fix coverity build.
Browse files Browse the repository at this point in the history
- Run "cmake" before building.
- Enable more codecs.
- Build on PRs (but don't upload to Coverity).
  • Loading branch information
fancycode committed Jul 11, 2024
1 parent 66bdcdc commit d067859
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ name: coverity
on:
push:
branches: [ coverity ]
pull_request:
branches: [ master ]

jobs:
scan:
runs-on: ubuntu-20.04
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
WITH_AOM: 1
WITH_DAV1D: 1
WITH_GRAPHICS: 1
WITH_LIBDE265: 1
WITH_RAV1E: 1
WITH_X265: 1
steps:
- uses: actions/checkout@v4
Expand All @@ -21,7 +25,7 @@ jobs:
with:
path: |
coverity_tool.tar.gz
key: ${{ runner.os }}
key: coverity_tool-${{ runner.os }}

- name: Download Coverity build tool
run: |
Expand All @@ -39,10 +43,13 @@ jobs:
- name: Build with Coverity build tool
run: |
export PATH=`pwd`/coverity_tool/bin:$PATH
cov-build --dir cov-int make
export PATH=$(pwd)/coverity_tool/bin:$PATH
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/"
cmake --preset=develop .
cov-build --dir cov-int make -j$(nproc)
- name: Submit build result to Coverity Scan
if: github.ref == 'refs/heads/coverity'
run: |
tar czvf libheif.tar.gz cov-int
curl --form token=$TOKEN \
Expand Down

0 comments on commit d067859

Please sign in to comment.