Skip to content

Commit 10838c1

Browse files
authored
ci: install opencv manually
1 parent 85202fd commit 10838c1

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/codspeed.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,29 @@ jobs:
3030

3131
- uses: extractions/setup-just@v2
3232

33-
- run: sudo apt-get update && sudo apt-get install -y build-essential checkinstall git cmake g++ wget unzip pkg-config yasm git
34-
- uses: Dovyski/[email protected]
35-
with:
36-
opencv-version: '4.0.0'
37-
CMAKE_BUILD_TYPE: RelWithDebInfo
38-
install-deps: false
39-
40-
# - run: sudo apt-get update && sudo apt install -y libopencv-dev
33+
# https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html
34+
- name: Build opencv
35+
run: |
36+
sudo apt update && sudo apt install -y cmake g++ wget unzip
37+
38+
# Download and unpack sources
39+
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
40+
unzip opencv.zip
41+
42+
# Create build directory
43+
mkdir -p build && cd build
44+
45+
# Configure
46+
cmake ../opencv-4.x
47+
48+
# Build
49+
cmake --build .
50+
51+
# - uses: Dovyski/[email protected]
52+
# with:
53+
# opencv-version: '4.0.0'
54+
# CMAKE_BUILD_TYPE: RelWithDebInfo
55+
# install-deps: false
4156

4257
- name: Build the benchmark target(s)
4358
run: |

0 commit comments

Comments
 (0)