File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 79
79
- name : Build benchmark example
80
80
run : |
81
81
cd examples/google_benchmark_cmake/build
82
- cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
82
+ cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCMAKE_BUILD_TYPE=Release ..
83
83
make -j
84
84
85
85
- name : Run the benchmarks
@@ -119,15 +119,15 @@ jobs:
119
119
120
120
- name : Build and run benchmarks
121
121
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
123
123
124
124
- name : Run the benchmarks
125
125
uses : CodSpeedHQ/action@main
126
126
if : matrix.codspeed-mode != 'off'
127
127
env :
128
128
CODSPEED_PERF_ENABLED : true
129
129
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
131
131
token : ${{ secrets.CODSPEED_TOKEN }}
132
132
133
133
windows-cmake-build :
@@ -157,7 +157,7 @@ jobs:
157
157
- name : Build benchmark example
158
158
run : |
159
159
cd examples\google_benchmark_cmake\build
160
- cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
160
+ cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCMAKE_BUILD_TYPE=Release ..
161
161
cmake --build . --config Release
162
162
shell : pwsh
163
163
You can’t perform that action at this time.
0 commit comments