File tree Expand file tree Collapse file tree 4 files changed +45
-16
lines changed Expand file tree Collapse file tree 4 files changed +45
-16
lines changed Original file line number Diff line number Diff line change 13
13
extra_install :
14
14
required : false
15
15
type : string
16
- gtest_args :
16
+ gtest_filter :
17
17
required : false
18
18
type : string
19
+ default : " *"
19
20
20
21
env :
21
22
BUILD_TYPE : Release
44
45
- uses : actions/checkout@v2
45
46
46
47
- name : Install dependencies
47
- run : |
48
- sudo apt-get install -y ${{ matrix.INSTALL }} ${{ inputs.extra_install }}
48
+ run : sudo apt-get install -y cmake ${{ matrix.INSTALL }} ${{ inputs.extra_install }}
49
49
50
50
- name : Configure CMake
51
51
run : |
56
56
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON \
57
57
${{ inputs.extra_cmake_flags }}
58
58
59
-
60
59
- name : Build
61
- # Build your program with the given configuration
62
- run : |
63
- cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all
60
+ run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all
64
61
65
62
- name : Start ClickHouse server
66
63
run : |
76
73
77
74
- name : Test
78
75
working-directory : ${{github.workspace}}/build/ut
79
- run : ./clickhouse-cpp-ut "${{ inputs.gtest_args }}"
76
+ run : ./clickhouse-cpp-ut --gtest_filter= "${{inputs.gtest_filter }}"
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build-and-test :
12
- uses : Enmk /clickhouse-cpp/.github/workflows/linux.yml@master
12
+ uses : ClickHouse /clickhouse-cpp/.github/workflows/linux.yml@master
13
13
with :
14
14
extra_cmake_flags : -DWITH_OPENSSL=ON
15
15
extra_install : libssl-dev
16
- # gtest_args: --gtest_filter= "-*LocalhostTLS*"
16
+ # gtest_filter: "-*LocalhostTLS*"
Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
+ workflow_call :
9
+ inputs :
10
+ extra_cmake_flags :
11
+ required : false
12
+ type : string
13
+ extra_install :
14
+ required : false
15
+ type : string
16
+ gtest_filter :
17
+ required : false
18
+ type : string
19
+ default : " *"
8
20
9
21
env :
10
22
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
23
15
24
jobs :
16
25
build :
17
- runs-on : macos-11
26
+ runs-on : macos-latest
18
27
19
28
steps :
20
29
- uses : actions/checkout@v2
21
30
31
+ - name : Install dependencies
32
+ run : brew install cmake ${{inputs.extra_install}}
33
+
22
34
- name : Configure CMake
23
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON
35
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=ON ${{inputs.extra_cmake_flags}}
24
36
25
37
- name : Build
26
38
run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target all
27
39
28
40
- name : Test
29
41
working-directory : ${{github.workspace}}/build/ut
30
- run : ./clickhouse-cpp-ut "${{env.GTEST_FILTER}}"
42
+ env :
43
+ # It is impossible to start CH server in docker on macOS due to github actions limitations,
44
+ # so limit tests to ones that do no require server interaction.
45
+ GTEST_FILTER_ONLY_LOCAL : " -Client/*"
46
+ run : ./clickhouse-cpp-ut --gtest_filter="${{inputs.gtest_filter}}:${{env.GTEST_FILTER_ONLY_LOCAL}}"
Original file line number Diff line number Diff line change
1
+ name : macOS-ssl
2
+ # Almost the same as regular macOS builds, BUT with enabled SSL support, requires OpenSSL installed via Homebrew ([email protected] )
3
+
4
+ on :
5
+ push :
6
+ branches : [ master ]
7
+ pull_request :
8
+ branches : [ master ]
9
+
10
+ jobs :
11
+ build-and-test :
12
+ uses : ClickHouse/clickhouse-cpp/.github/workflows/macos.yml@master
13
+ with :
14
+ extra_cmake_flags : -DWITH_OPENSSL=ON
15
+ extra_install : openssl
16
+ # gtest_filter: "-*LocalhostTLS*"
You can’t perform that action at this time.
0 commit comments