1
- name : Windows MinGW64
1
+ name : Windows mingw
2
2
3
3
on :
4
4
push :
8
8
9
9
env :
10
10
BUILD_TYPE : Release
11
- GTEST_FILTER : --gtest_filter=-"*"
12
11
CLICKHOUSE_USER : clickhouse_cpp_cicd
13
12
CLICKHOUSE_PASSWORD : clickhouse_cpp_cicd
14
- MSYS2_DIR : msys64
15
- MSYS2_ARCH : x86_64
16
- MSYSTEM : MINGW64
17
- ARCH : win64
18
- PLATFORM : x64
19
13
20
- #
14
+ #
21
15
# CLICKHOUSE_HOST: localhost
22
16
# CLICKHOUSE_PORT: 9000
23
17
# CLICKHOUSE_USER: default
40
34
build :
41
35
runs-on : windows-latest
42
36
37
+ strategy :
38
+ matrix :
39
+ include :
40
+ - { sys: mingw64, env: x86_64 }
41
+ - { sys: mingw32, env: i686 }
42
+ - { sys: ucrt64, env: ucrt-x86_64 } # Experimental!
43
+ - { sys: clang64, env: clang-x86_64 } # Experimental!
44
+
43
45
defaults :
44
46
run :
45
47
shell : msys2 {0}
@@ -48,15 +50,23 @@ jobs:
48
50
- uses : actions/checkout@v2
49
51
- uses : msys2/setup-msys2@v2
50
52
with :
53
+ msystem : ${{ matrix.sys }}
51
54
update : true
52
- install : git mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-gcc mingw-w64-x86_64-libc++ mingw-w64-x86_64-openssl mingw-w64-x86_64-ninja mingw-w64-x86_64-wget tar mingw-w64-x86_64-ca-certificates
53
- msystem : MINGW64
54
-
55
- - name : Configure CMake & Run build
56
- run : |
57
- mkdir build && cd build
58
- cmake .. -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON -DWITH_OPENSSL=ON
59
- cmake --build .
55
+ install : >-
56
+ mingw-w64-${{matrix.env}}-cmake
57
+ mingw-w64-${{matrix.env}}-make
58
+ mingw-w64-${{matrix.env}}-gcc
59
+ mingw-w64-${{matrix.env}}-openssl
60
+ mingw-w64-${{matrix.env}}-ninja
61
+ mingw-w64-${{matrix.env}}-wget
62
+ mingw-w64-${{matrix.env}}-ca-certificates
63
+ tar
64
+
65
+ - name : Configure CMake
66
+ run : cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON
67
+
68
+ - name : Build
69
+ run : cmake --build build --config ${{env.BUILD_TYPE}} --target all
60
70
61
71
- name : Start tls offoader proxy
62
72
# that mimics non-secure clickhouse running on localhost
68
78
./go-tlsoffloader.exe -l localhost:9000 -b github.demo.trial.altinity.cloud:9440 &
69
79
70
80
- name : Test
71
- run : |
72
- cd build/ut
73
- ./clickhouse-cpp-ut.exe
81
+ run : ./build/ut/clickhouse-cpp-ut.exe
82
+
83
+ - name : Test (simple)
84
+ run : ./build/tests/simple-test.exe
0 commit comments