File tree Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Expand file tree Collapse file tree 2 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 17
17
CODSPEED_LOG : debug
18
18
steps :
19
19
- uses : actions/checkout@v4
20
- with :
20
+ with :
21
21
lfs : true
22
22
- uses : extractions/setup-just@v2
23
23
@@ -31,30 +31,29 @@ jobs:
31
31
- name : Build opencv
32
32
run : |
33
33
sudo apt update && sudo apt install -y cmake g++ wget unzip
34
-
34
+
35
35
# Download and unpack sources
36
36
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
37
37
unzip opencv.zip
38
-
38
+
39
39
# Create build directory
40
40
mkdir -p build-opencv && cd build-opencv
41
-
41
+
42
42
# Configure
43
43
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ../opencv-4.x
44
-
44
+
45
45
# Build and install
46
46
ninja -j$(nproc)
47
47
sudo ninja install
48
-
48
+
49
49
- name : Build the benchmark target(s)
50
50
run : |
51
51
just build-instrumentation
52
- just run
53
52
54
53
- name : Run the benchmarks
55
54
uses : CodSpeedHQ/action@v3
56
55
with :
57
- run : build/cv-bench
56
+ run : just run
58
57
token : ${{ secrets.CODSPEED_TOKEN }}
59
58
upload-url : https://api.staging.preview.codspeed.io/upload
60
59
@@ -65,21 +64,19 @@ jobs:
65
64
CODSPEED_LOG : debug
66
65
steps :
67
66
- uses : actions/checkout@v4
68
- with :
67
+ with :
69
68
lfs : true
70
69
- uses : extractions/setup-just@v2
71
-
70
+
72
71
- run : sudo apt-get update && sudo apt install -y libopencv-dev
73
-
72
+
74
73
- name : Build the benchmark target(s)
75
74
run : |
76
75
just build-walltime
77
- just run
78
76
79
77
- name : Run the benchmarks
80
78
uses : CodSpeedHQ/action@v3
81
79
with :
82
- run : build/cv-bench
80
+ run : just run
83
81
token : ${{ secrets.CODSPEED_TOKEN }}
84
82
upload-url : https://api.staging.preview.codspeed.io/upload
85
-
Original file line number Diff line number Diff line change 3
3
4
4
run :
5
5
cp -r assets/ build/
6
- cmake -- build . / build --target run_all_benchmarks
6
+ cd build && ninja run_all_benchmarks
7
7
8
8
build :
9
9
mkdir -p build
You can’t perform that action at this time.
0 commit comments