Skip to content

Commit 8dc33a9

Browse files
committed
fix: run benchmarks in release mode
1 parent 762e22c commit 8dc33a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Build benchmark example
8080
run: |
8181
cd examples/google_benchmark_cmake/build
82-
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
82+
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCMAKE_BUILD_TYPE=Release ..
8383
make -j
8484
8585
- name: Run the benchmarks
@@ -119,15 +119,15 @@ jobs:
119119

120120
- name: Build and run benchmarks
121121
run: |
122-
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
122+
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --compilation_mode=opt
123123
124124
- name: Run the benchmarks
125125
uses: CodSpeedHQ/action@main
126126
if: matrix.codspeed-mode != 'off'
127127
env:
128128
CODSPEED_PERF_ENABLED: true
129129
with:
130-
run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
130+
run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --compilation_mode=opt
131131
token: ${{ secrets.CODSPEED_TOKEN }}
132132

133133
windows-cmake-build:
@@ -157,7 +157,7 @@ jobs:
157157
- name: Build benchmark example
158158
run: |
159159
cd examples\google_benchmark_cmake\build
160-
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
160+
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCMAKE_BUILD_TYPE=Release ..
161161
cmake --build . --config Release
162162
shell: pwsh
163163

0 commit comments

Comments
 (0)