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 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
You can’t perform that action at this time.
0 commit comments