Skip to content

Commit

Permalink
Merge branch 'master' of github.com:strukturag/libde265
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 20, 2022
2 parents 29698db + a1ac9e0 commit c96962c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
49 changes: 49 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: coverity

on:
push:
branches: [ coverity ]

jobs:
scan:
runs-on: ubuntu-latest
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
steps:
- uses: actions/checkout@v3

- name: Cache Coverity build tool
uses: actions/cache@v3
with:
path: |
coverity_tool.tar.gz
key: ${{ runner.os }}

- name: Download Coverity build tool
run: |
wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=libde265" -O coverity_tool.tar.gz
mkdir coverity_tool
tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool
- name: Install dependencies
run: |
./scripts/ci-before-install-linux.sh
- name: Prepare CI
run: |
./scripts/ci-before-script.sh
- name: Build with Coverity build tool
run: |
export PATH=`pwd`/coverity_tool/bin:$PATH
cov-build --dir cov-int make
- name: Submit build result to Coverity Scan
run: |
tar czvf libde265.tar.gz cov-int
curl --form token=$TOKEN \
--form [email protected] \
--form [email protected] \
--form version="Commit $GITHUB_SHA" \
--form description="Build submitted via CI" \
https://scan.coverity.com/builds?project=libde265
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ if(MSVC)
add_definitions(-DHAVE_STDBOOL_H)
endif()

option(ENABLE_DECODER "Enable Decoder" ON)
option(ENABLE_ENCODER "Enable Encoder" OFF)

add_subdirectory (libde265)
add_subdirectory (dec265)
add_subdirectory (enc265)
if (ENABLE_DECODER)
add_subdirectory (dec265)
endif()
if (ENABLE_ENCODER)
add_subdirectory (enc265)
endif()
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ endif
EXTRA_DIST = \
autogen.sh \
build.bat \
m4/ax_compare_version.m4 \
m4/ax_cxx_compile_stdcxx_11.m4 \
m4/m4_ax_check_compile_flag.m4 \
m4/visibility.m4 \
Makefile.vc7 \
CMakeLists.txt \
README.md \
Expand Down

0 comments on commit c96962c

Please sign in to comment.