Skip to content

Commit f7266d6

Browse files
committed
fix: run in ci
1 parent d271cdc commit f7266d6

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

.github/workflows/codspeed.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
CODSPEED_LOG: debug
1818
steps:
1919
- uses: actions/checkout@v4
20-
with:
20+
with:
2121
lfs: true
2222
- uses: extractions/setup-just@v2
2323

@@ -31,30 +31,29 @@ jobs:
3131
- name: Build opencv
3232
run: |
3333
sudo apt update && sudo apt install -y cmake g++ wget unzip
34-
34+
3535
# Download and unpack sources
3636
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.x.zip
3737
unzip opencv.zip
38-
38+
3939
# Create build directory
4040
mkdir -p build-opencv && cd build-opencv
41-
41+
4242
# Configure
4343
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ../opencv-4.x
44-
44+
4545
# Build and install
4646
ninja -j$(nproc)
4747
sudo ninja install
48-
48+
4949
- name: Build the benchmark target(s)
5050
run: |
5151
just build-instrumentation
52-
just run
5352
5453
- name: Run the benchmarks
5554
uses: CodSpeedHQ/action@v3
5655
with:
57-
run: build/cv-bench
56+
run: just run
5857
token: ${{ secrets.CODSPEED_TOKEN }}
5958
upload-url: https://api.staging.preview.codspeed.io/upload
6059

@@ -65,21 +64,19 @@ jobs:
6564
CODSPEED_LOG: debug
6665
steps:
6766
- uses: actions/checkout@v4
68-
with:
67+
with:
6968
lfs: true
7069
- uses: extractions/setup-just@v2
71-
70+
7271
- run: sudo apt-get update && sudo apt install -y libopencv-dev
73-
72+
7473
- name: Build the benchmark target(s)
7574
run: |
7675
just build-walltime
77-
just run
7876
7977
- name: Run the benchmarks
8078
uses: CodSpeedHQ/action@v3
8179
with:
82-
run: build/cv-bench
80+
run: just run
8381
token: ${{ secrets.CODSPEED_TOKEN }}
8482
upload-url: https://api.staging.preview.codspeed.io/upload
85-

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ clean:
33

44
run:
55
cp -r assets/ build/
6-
cmake --build ./build --target run_all_benchmarks
6+
cd build && ninja run_all_benchmarks
77

88
build:
99
mkdir -p build

0 commit comments

Comments
 (0)