Skip to content

Commit 871999b

Browse files
ci: add windows minimal compilation test
1 parent d68b802 commit 871999b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,32 @@ 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: mkdir examples\google_benchmark_cmake\build
60+
shell: pwsh
61+
62+
- name: Build benchmark example
63+
run: |
64+
cd examples\google_benchmark_cmake\build
65+
cmake -DCODSPEED_MODE=${{ matrix.codspeed-mode }} ..
66+
cmake --build . --config Release
67+
shell: pwsh
68+
4369
cmake-integration-tests:
4470
strategy:
4571
matrix:

0 commit comments

Comments
 (0)