Skip to content

Commit 52f3fae

Browse files
committed
cleaner
1 parent 4a03563 commit 52f3fae

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

.github/workflows/windows_mingw.yml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Windows MinGW64
1+
name: Windows mingw
22

33
on:
44
push:
@@ -8,16 +8,10 @@ on:
88

99
env:
1010
BUILD_TYPE: Release
11-
GTEST_FILTER: --gtest_filter=-"*"
1211
CLICKHOUSE_USER: clickhouse_cpp_cicd
1312
CLICKHOUSE_PASSWORD: clickhouse_cpp_cicd
14-
MSYS2_DIR: msys64
15-
MSYS2_ARCH: x86_64
16-
MSYSTEM: MINGW64
17-
ARCH: win64
18-
PLATFORM: x64
1913

20-
#
14+
#
2115
# CLICKHOUSE_HOST: localhost
2216
# CLICKHOUSE_PORT: 9000
2317
# CLICKHOUSE_USER: default
@@ -40,6 +34,14 @@ jobs:
4034
build:
4135
runs-on: windows-latest
4236

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+
4345
defaults:
4446
run:
4547
shell: msys2 {0}
@@ -48,15 +50,23 @@ jobs:
4850
- uses: actions/checkout@v2
4951
- uses: msys2/setup-msys2@v2
5052
with:
53+
msystem: ${{ matrix.sys }}
5154
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
6070

6171
- name: Start tls offoader proxy
6272
# that mimics non-secure clickhouse running on localhost
@@ -68,6 +78,7 @@ jobs:
6878
./go-tlsoffloader.exe -l localhost:9000 -b github.demo.trial.altinity.cloud:9440 &
6979
7080
- 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

Comments
 (0)