@@ -128,42 +128,54 @@ jobs:
128128 run : bazel run //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
129129 token : ${{ secrets.CODSPEED_TOKEN }}
130130
131- windows- cmake-build :
131+ cmake-build :
132132 strategy :
133+ fail-fast : false
133134 matrix :
135+ os : [ubuntu-latest, windows-latest]
134136 codspeed-mode : ["off", "walltime"]
135- runs-on : windows-latest
137+ runs-on : ${{ matrix.os }}
136138 steps :
137139 - name : Checkout code
138- uses : actions/checkout@v3
140+ uses : actions/checkout@v4
139141 with :
140142 submodules : " recursive"
141143
142144 - name : Cache build
143145 uses : actions/cache@v3
144146 with :
145147 path : examples/google_benchmark_cmake/build
146- key : ${{ runner.os }}-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
148+ key : ${{ runner.os }}-cmake- build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
147149
148- - name : Create build directory
150+ - name : Build benchmark example (Unix)
151+ if : runner.os != 'Windows'
152+ run : |
153+ mkdir -p examples/google_benchmark_cmake/build
154+ cd examples/google_benchmark_cmake/build
155+ cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
156+ make -j
157+
158+ - name : Build benchmark example (Windows)
159+ if : runner.os == 'Windows'
149160 run : |
150161 if (-not (Test-Path examples\google_benchmark_cmake\build)) {
151162 mkdir examples\google_benchmark_cmake\build
152163 }
153- shell : pwsh
154-
155- - name : Build benchmark example
156- run : |
157164 cd examples\google_benchmark_cmake\build
158165 cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
159166 cmake --build . --config Release
160167 shell : pwsh
161168
162- windows- bazel-build :
169+ bazel-build :
163170 strategy :
171+ fail-fast : false
164172 matrix :
173+ os : [ubuntu-latest, windows-latest]
165174 codspeed-mode : ["off", "walltime"]
166- runs-on : windows-latest
175+ bazel-version : ["7.6.2", "8.4.2", "9.0.0-pre.20250921.2"]
176+ runs-on : ${{ matrix.os }}
177+ env :
178+ USE_BAZEL_VERSION : ${{ matrix.bazel-version }}
167179 steps :
168180 - uses : actions/checkout@v4
169181 with :
@@ -182,4 +194,3 @@ jobs:
182194 - name : Build benchmark example
183195 run : |
184196 bazel build //examples/google_benchmark_bazel:my_benchmark --//core:codspeed_mode=${{ matrix.codspeed-mode }}
185- shell : pwsh
0 commit comments