Skip to content

Commit 02288f8

Browse files
committed
Create windows_msvc.yml
Let's try the trivial GH action #130
1 parent 7898641 commit 02288f8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/windows_msvc.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Windows
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
BUILD_TYPE: Release
11+
# It is impossible to start CH server in docker on macos due to github actions limitations,
12+
# so limit tests to ones that do no require server interaction.
13+
GTEST_FILTER: --gtest_filter=-"Client/*:*Performance*"
14+
15+
jobs:
16+
build:
17+
runs-on: windows-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: ilammy/msvc-dev-cmd@v1
22+
23+
- name: Configure CMake
24+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON
25+
26+
- name: Build
27+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
28+
29+
- name: Test
30+
working-directory: ${{github.workspace}}/build/ut
31+
run: ./clickhouse-cpp-ut.exe "${{env.GTEST_FILTER}}"

0 commit comments

Comments
 (0)