Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Make build environment parallel (Linux) #2076

Merged
merged 1 commit into from
Mar 28, 2023
Merged
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
18 changes: 9 additions & 9 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function install_prometheus_cpp_client
[[ -d _build ]] && rm -rf ./_build
mkdir _build && cd _build
cmake .. -DBUILD_SHARED_LIBS=ON -DUSE_THIRDPARTY_LIBRARIES=ON
make -j 4
make -j $(nproc)
sudo make install
popd
}
Expand Down Expand Up @@ -87,7 +87,7 @@ if [[ "$1" == "cmake.test" ]]; then
-DWITH_LOGS_PREVIEW=ON \
-DCMAKE_CXX_FLAGS="-Werror $CXXFLAGS" \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.maintainer.test" ]]; then
Expand All @@ -109,7 +109,7 @@ elif [[ "$1" == "cmake.maintainer.test" ]]; then
-DOTELCPP_MAINTAINER_MODE=ON \
-DWITH_NO_DEPRECATED_CODE=ON \
"${SRC_DIR}"
make -k
make -k -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.with_async_export.test" ]]; then
Expand All @@ -125,7 +125,7 @@ elif [[ "$1" == "cmake.with_async_export.test" ]]; then
-DCMAKE_CXX_FLAGS="-Werror $CXXFLAGS" \
-DWITH_ASYNC_EXPORT_PREVIEW=ON \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.abseil.test" ]]; then
Expand All @@ -138,7 +138,7 @@ elif [[ "$1" == "cmake.abseil.test" ]]; then
-DWITH_ASYNC_EXPORT_PREVIEW=ON \
-DWITH_ABSEIL=ON \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.opentracing_shim.test" ]]; then
Expand All @@ -148,7 +148,7 @@ elif [[ "$1" == "cmake.opentracing_shim.test" ]]; then
-DCMAKE_CXX_FLAGS="-Werror -Wno-error=redundant-move $CXXFLAGS" \
-DWITH_OPENTRACING=ON \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.c++20.test" ]]; then
Expand All @@ -159,7 +159,7 @@ elif [[ "$1" == "cmake.c++20.test" ]]; then
-DWITH_ASYNC_EXPORT_PREVIEW=ON \
-DCMAKE_CXX_STANDARD=20 \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.c++20.stl.test" ]]; then
Expand All @@ -172,7 +172,7 @@ elif [[ "$1" == "cmake.c++20.stl.test" ]]; then
-DWITH_ASYNC_EXPORT_PREVIEW=ON \
-DWITH_STL=ON \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.legacy.test" ]]; then
Expand All @@ -184,7 +184,7 @@ elif [[ "$1" == "cmake.legacy.test" ]]; then
-DCMAKE_CXX_FLAGS="-Werror $CXXFLAGS" \
-DCMAKE_CXX_STANDARD=11 \
"${SRC_DIR}"
make
make -j $(nproc)
make test
exit 0
elif [[ "$1" == "cmake.legacy.exporter.otprotocol.test" ]]; then
Expand Down