Skip to content

Commit dd0bbcf

Browse files
committed
chore(ci): enable strict warnings
1 parent f429757 commit dd0bbcf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build tests
3636
run: |
3737
cd core/build-tests
38-
cmake .. -DENABLE_TESTS=ON
38+
cmake .. -DENABLE_TESTS=ON -DCODSPEED_STRICT_WARNINGS=ON
3939
make -j
4040
4141
- name: Run tests
@@ -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 }} -DCODSPEED_STRICT_WARNINGS=ON ..
8383
make -j
8484
8585
- name: Run the benchmarks
@@ -118,14 +118,14 @@ jobs:
118118

119119
- name: Build and run benchmarks
120120
run: |
121-
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
121+
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --//core:strict_warnings=on
122122
123123
- name: Run the benchmarks
124124
uses: CodSpeedHQ/action@main
125125
if: matrix.codspeed-mode != 'off'
126126
with:
127127
mode: ${{ matrix.codspeed-mode }}
128-
run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
128+
run: bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --//core:strict_warnings=on
129129
token: ${{ secrets.CODSPEED_TOKEN }}
130130

131131
cmake-build:
@@ -193,4 +193,4 @@ jobs:
193193

194194
- name: Build benchmark example
195195
run: |
196-
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
196+
bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }} --//core:strict_warnings=on

0 commit comments

Comments
 (0)