|
9 | 9 | jobs: |
10 | 10 | tests: |
11 | 11 | runs-on: ubuntu-latest |
12 | | - steps: |
| 12 | + steps: |
13 | 13 | - name: Checkout code |
14 | 14 | uses: actions/checkout@v3 |
15 | 15 |
|
|
29 | 29 | make -j |
30 | 30 |
|
31 | 31 | - name: Run tests |
32 | | - run: | |
| 32 | + run: | |
33 | 33 | cd core/build-tests |
34 | 34 | GTEST_OUTPUT=json:test-results/ ctest |
35 | 35 |
|
|
67 | 67 | - name: Build benchmark example |
68 | 68 | run: | |
69 | 69 | cd examples/google_benchmark_cmake/build |
70 | | - cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} .. |
| 70 | + cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCMAKE_BUILD_TYPE=Release .. |
71 | 71 | make -j |
72 | 72 |
|
73 | 73 | - name: Run the benchmarks |
@@ -103,13 +103,13 @@ jobs: |
103 | 103 |
|
104 | 104 | - name: Build and run benchmarks |
105 | 105 | run: | |
106 | | - bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} |
107 | | - |
| 106 | + bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --compilation_mode=opt |
| 107 | +
|
108 | 108 | - name: Run the benchmarks |
109 | 109 | uses: CodSpeedHQ/action@main |
110 | 110 | if: matrix.codspeed-mode != 'off' |
111 | 111 | with: |
112 | | - run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} |
| 112 | + run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --compilation_mode=opt |
113 | 113 | token: ${{ secrets.CODSPEED_TOKEN }} |
114 | 114 |
|
115 | 115 | windows-cmake-build: |
@@ -137,7 +137,7 @@ jobs: |
137 | 137 | - name: Build benchmark example |
138 | 138 | run: | |
139 | 139 | cd examples\google_benchmark_cmake\build |
140 | | - cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} .. |
| 140 | + cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} -DCMAKE_BUILD_TYPE=Release .. |
141 | 141 | cmake --build . --config Release |
142 | 142 | shell: pwsh |
143 | 143 |
|
|
0 commit comments