Skip to content

Commit ab46db0

Browse files
ci: add windows minimal compilation test
1 parent 23fd80a commit ab46db0

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-tests:
44+
runs-on: windows-latest
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v3
48+
49+
- name: Cache build
50+
uses: actions/cache@v3
51+
with:
52+
path: core/build-tests
53+
key: ${{ runner.os }}-build-tests-${{ hashFiles('**/CMakeLists.txt') }}
54+
55+
- name: Create build directory
56+
run: mkdir core\build-tests
57+
shell: pwsh
58+
59+
- name: Build tests
60+
run: |
61+
cd core\build-tests
62+
cmake .. -DENABLE_TESTS=ON
63+
cmake --build . --config Release
64+
shell: pwsh
65+
66+
- name: Run tests
67+
run: |
68+
cd core\build-tests
69+
ctest -C Release
70+
shell: pwsh
71+
4372
cmake-integration-tests:
4473
strategy:
4574
matrix:

0 commit comments

Comments
 (0)