Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: OPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 CXX=clang++ CC=clang cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.mode}} -DYLT_ENABLE_SSL=${{matrix.ssl}} -DUSE_CCACHE=ON

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(( $(sysctl -n hw.logicalcpu) / 2 + 1 ))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ntls_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Build
run: |
export LD_LIBRARY_PATH=${TONGSUO_INSTALL_PREFIX}/lib:$LD_LIBRARY_PATH
cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Verify NTLS examples are built
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/s390x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ jobs:
apt-get update -q -y
apt-get -y install cmake
apt-get -y install make
apt-get -y install g++
apt-get -y install clang
apt-get -y install clang++
run: |
lscpu | grep Endian
CXX=g++ CC=gcc
CXX=clang++ CC=clang
cmake -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_METRIC=OFF -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 -DBUILD_EXAMPLES=OFF -DBUILD_BENCHMARK=OFF
cmake --build ${{github.workspace}}/build -- -j$(($(nproc)/2 + 1))
cmake --build ${{github.workspace}}/build -- -j
cd ${{github.workspace}}/build/output/tests
./struct_pack_test
./struct_pack_test_with_optimize
8 changes: 4 additions & 4 deletions .github/workflows/ubuntu_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
-DCMAKE_BUILD_TYPE=${{matrix.mode}} -DBUILD_WITH_LIBCXX=${{matrix.libcxx}} -DYLT_ENABLE_SSL=${{matrix.ssl}} \
-DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
-DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17\
-DENABLE_TSAN=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
-DBUILD_STRUCT_JSON=OFF -DBUILD_STRUCT_XML=OFF -DBUILD_STRUCT_PACK=OFF -DBUILD_STRUCT_YAML=OFF -DBUILD_UTIL=OFF

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
-DUSE_CCACHE=${{env.ccache}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ubuntu_gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
-DUSE_CCACHE=${{env.ccache}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
-DUSE_CCACHE=${{env.ccache}} -DENABLE_TSAN=ON

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
-DBUILD_STRUCT_JSON=OFF -DBUILD_STRUCT_XML=OFF -DBUILD_STRUCT_PACK=OFF -DBUILD_STRUCT_YAML=OFF -DBUILD_UTIL=OFF

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
-DUSE_CCACHE=${{env.ccache}} \

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}} -- -j$(($(nproc)/2 + 1))
run: cmake --build ${{github.workspace}}/build --config ${{matrix.mode}}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Configure CMake
run: cmake -B ${{github.workspace}}\build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DYLT_ENABLE_SSL=${{matrix.ssl}} -DUSE_CCACHE=ON
- name: Build
run: cmake --build ${{github.workspace}}\build -- -j3
run: cmake --build ${{github.workspace}}\build
- name: Test
working-directory: ${{github.workspace}}\build
run: ctest -C ${{matrix.mode}} -j 1 -V
2 changes: 0 additions & 2 deletions include/ylt/coro_rpc/impl/default_config/coro_rpc_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ struct config_t {
#ifdef YLT_ENABLE_IBV
std::optional<coro_io::ib_socket_t::config_t> ibv_config = std::nullopt;
std::vector<std::shared_ptr<coro_io::ib_device_t>> ibv_dev_lists;
coro_io::load_balance_algorithm ib_dev_load_balance_algorithm =
coro_io::load_balance_algorithm::RR;
#endif

using rpc_protocol = coro_rpc::protocol::coro_rpc_protocol;
Expand Down
Loading