Skip to content

Commit 5fa0322

Browse files
ci: add windows minimal compilation test
1 parent 217d320 commit 5fa0322

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,35 @@ jobs:
4040
name: test_results
4141
path: ${{runner.workspace}}/core/build-tests/test/test-results/**/*.json
4242

43+
windows-build:
44+
strategy:
45+
matrix:
46+
codspeed-mode: ["off", "walltime"]
47+
runs-on: windows-latest
48+
steps:
49+
- name: Checkout code
50+
uses: actions/checkout@v3
51+
52+
- name: Cache build
53+
uses: actions/cache@v3
54+
with:
55+
path: examples/google_benchmark_cmake/build
56+
key: ${{ runner.os }}-build-${{ matrix.codspeed-mode }}-${{ hashFiles('**/CMakeLists.txt') }}
57+
58+
- name: Create build directory
59+
run: |
60+
if (-not (Test-Path examples\google_benchmark_cmake\build)) {
61+
mkdir examples\google_benchmark_cmake\build
62+
}
63+
shell: pwsh
64+
65+
- name: Build benchmark example
66+
run: |
67+
cd examples\google_benchmark_cmake\build
68+
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
69+
cmake --build . --config Release
70+
shell: pwsh
71+
4372
cmake-integration-tests:
4473
strategy:
4574
matrix:

0 commit comments

Comments
 (0)