Skip to content

Commit 373bb47

Browse files
authored
Update codeql-analysis.yml
Add OpenCV dependency
1 parent f11025e commit 373bb47

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ jobs:
2525
# Override automatic language detection by changing the below list
2626
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
2727
language: ['cpp']
28-
# Learn more...
29-
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
28+
# Supported version for OpenCV
29+
opencv: [
30+
4.2.0
31+
]
32+
compiler: [g++]
3033

3134
steps:
3235
- name: Checkout repository
@@ -51,6 +54,15 @@ jobs:
5154
# Prefix the list here with "+" to use these queries and those in the config file.
5255
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5356

57+
- name: Install dev dependencies
58+
run: |
59+
# Install OpenCV dev libraries
60+
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu focal-security main"
61+
sudo apt-get update
62+
sudo apt-get install -y \
63+
build-essential checkinstall cmake pkg-config \
64+
git \
65+
libopencv-dev
5466
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5567
# If this step fails, then you should remove it and run the build manually (see below)
5668
- name: Autobuild

0 commit comments

Comments
 (0)