File tree 4 files changed +24
-6
lines changed
4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,16 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
17
+ - name : Install newer Clang
18
+ run : |
19
+ wget https://apt.llvm.org/llvm.sh
20
+ chmod +x ./llvm.sh
21
+ sudo ./llvm.sh 17
22
+
17
23
- name : Build
18
24
working-directory : ${{github.workspace}}
19
- run : bazel build --action_env=CXX=clang++ --action_env=CC=clang ...
25
+ run : bazel build --action_env=CXX=clang++-17 --action_env=CC=clang-17 ...
20
26
21
27
- name : Test
22
28
working-directory : ${{github.workspace}}
23
- run : bazel test --action_env=CXX=clang++ --action_env=CC=clang --test_output=errors ...
29
+ run : bazel test --action_env=CXX=clang++-17 --action_env=CC=clang-17 --test_output=errors ...
Original file line number Diff line number Diff line change 31
31
- name : Install ninja-build tool
32
32
uses : seanmiddleditch/gha-setup-ninja@master
33
33
34
+ - name : Install newer Clang
35
+ run : |
36
+ wget https://apt.llvm.org/llvm.sh
37
+ chmod +x ./llvm.sh
38
+ sudo ./llvm.sh 17
39
+
34
40
- name : ccache
35
41
uses :
hendrikmuhs/[email protected]
36
42
with :
40
46
run : |
41
47
cmake -B ${{github.workspace}}/build -G Ninja \
42
48
-DCMAKE_BUILD_TYPE=${{matrix.mode}} -DBUILD_WITH_LIBCXX=${{matrix.libcxx}} -DENABLE_SSL=${{matrix.ssl}} \
43
- -DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
49
+ -DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17
44
50
- name : Build
45
51
run : cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}
46
52
69
75
- name : Install ninja-build tool
70
76
uses : seanmiddleditch/gha-setup-ninja@v3
71
77
78
+ - name : Install newer Clang
79
+ run : |
80
+ wget https://apt.llvm.org/llvm.sh
81
+ chmod +x ./llvm.sh
82
+ sudo ./llvm.sh 17
83
+
72
84
- name : Check protoc
73
85
run : protoc --version
74
86
81
93
CXX=clang++ CC=clang
82
94
cmake -B ${{github.workspace}}/build -G Ninja \
83
95
-DCMAKE_BUILD_TYPE=${{matrix.mode}} -DBUILD_WITH_LIBCXX=${{matrix.libcxx}} -DENABLE_SSL=${{matrix.ssl}} \
84
- -DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++\
96
+ -DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17 \
85
97
-DBUILD_CORO_HTTP=OFF -DBUILD_CORO_IO=OFF -DBUILD_CORO_RPC=OFF -DBUILD_EASYLOG=OFF -DBUILD_STRUCT_JSON=OFF -DBUILD_STRUCT_XML=OFF -DBUILD_STRUCT_YAML=OFF -DBUILD_UTIL=OFF
86
98
- name : Build
87
99
run : cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}
Original file line number Diff line number Diff line change 1
1
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /output /tests/struct_pb)
2
2
find_package (Protobuf QUIET )
3
3
if (NOT Protobuf_FOUND)
4
- message (WARNING "to build struct_pb conformance test, you must install libprotoc first!!! " )
4
+ message (STATUS "to build struct_pb conformance test, you need to install libprotoc first" )
5
5
return ()
6
6
endif ()
7
7
set (CMAKE_INCLUDE_CURRENT_DIR ON )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if (Protobuf_FOUND)
11
11
RUNTIME DESTINATION bin
12
12
)
13
13
else ()
14
- message (WARNING "struct_pb is skipped. To build struct_pb protoc plugin, you must install libprotoc first!!! \n "
14
+ message (STATUS "struct_pb is skipped. To build struct_pb protoc plugin, you need to install libprotoc first\n "
15
15
"see https://alibaba.github.io/yalantinglibs/en/struct_pb/struct_pb_generating_your_struct.html"
16
16
)
17
17
endif ()
You can’t perform that action at this time.
0 commit comments