forked from boostorg/core
Only update the necessary submodules in ci.yml
This commit is contained in:
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -339,7 +339,6 @@ jobs:
|
|||||||
BUILD_JOBS=$((nproc || sysctl -n hw.ncpu) 2> /dev/null)
|
BUILD_JOBS=$((nproc || sysctl -n hw.ncpu) 2> /dev/null)
|
||||||
echo "BUILD_JOBS=$BUILD_JOBS" >> $GITHUB_ENV
|
echo "BUILD_JOBS=$BUILD_JOBS" >> $GITHUB_ENV
|
||||||
echo "CMAKE_BUILD_PARALLEL_LEVEL=$BUILD_JOBS" >> $GITHUB_ENV
|
echo "CMAKE_BUILD_PARALLEL_LEVEL=$BUILD_JOBS" >> $GITHUB_ENV
|
||||||
DEPINST_ARGS=()
|
|
||||||
GIT_VERSION="$(git --version | sed -e 's/git version //')"
|
GIT_VERSION="$(git --version | sed -e 's/git version //')"
|
||||||
GIT_HAS_JOBS=1
|
GIT_HAS_JOBS=1
|
||||||
if [ -f "/etc/debian_version" ]
|
if [ -f "/etc/debian_version" ]
|
||||||
@ -366,16 +365,23 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
if [ "$GIT_HAS_JOBS" -ne 0 ]
|
if [ "$GIT_HAS_JOBS" -ne 0 ]
|
||||||
then
|
then
|
||||||
DEPINST_ARGS+=("--git_args" "--jobs $GIT_FETCH_JOBS")
|
GIT_ARGS="--jobs $GIT_FETCH_JOBS"
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
git clone -b "$BOOST_BRANCH" --depth 1 "https://github.com/boostorg/boost.git" "boost-root"
|
git clone -b "$BOOST_BRANCH" --depth 1 "https://github.com/boostorg/boost.git" "boost-root"
|
||||||
cd boost-root
|
cd boost-root
|
||||||
mkdir -p libs/$LIBRARY
|
mkdir -p libs/$LIBRARY
|
||||||
cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY
|
cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY
|
||||||
git submodule update --init tools/boostdep
|
git submodule init tools/boost_install
|
||||||
DEPINST_ARGS+=("$LIBRARY")
|
git submodule init libs/headers
|
||||||
python tools/boostdep/depinst/depinst.py "${DEPINST_ARGS[@]}"
|
git submodule init tools/build
|
||||||
|
git submodule init tools/cmake
|
||||||
|
git submodule init libs/assert
|
||||||
|
git submodule init libs/config
|
||||||
|
git submodule init libs/static_assert
|
||||||
|
git submodule init libs/throw_exception
|
||||||
|
git submodule init libs/type_traits
|
||||||
|
git submodule update $GIT_ARGS
|
||||||
if [ -z "${{matrix.cmake_tests}}" ]
|
if [ -z "${{matrix.cmake_tests}}" ]
|
||||||
then
|
then
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
@ -493,8 +499,16 @@ jobs:
|
|||||||
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
||||||
cd boost-root
|
cd boost-root
|
||||||
xcopy /s /e /q %GITHUB_WORKSPACE% libs\%LIBRARY%\
|
xcopy /s /e /q %GITHUB_WORKSPACE% libs\%LIBRARY%\
|
||||||
git submodule update --init tools/boostdep
|
git submodule init tools/boost_install
|
||||||
python tools/boostdep/depinst/depinst.py --git_args "--jobs %GIT_FETCH_JOBS%" %LIBRARY%
|
git submodule init libs/headers
|
||||||
|
git submodule init tools/build
|
||||||
|
git submodule init tools/cmake
|
||||||
|
git submodule init libs/assert
|
||||||
|
git submodule init libs/config
|
||||||
|
git submodule init libs/static_assert
|
||||||
|
git submodule init libs/throw_exception
|
||||||
|
git submodule init libs/type_traits
|
||||||
|
git submodule update --jobs %GIT_FETCH_JOBS%
|
||||||
cmd /c bootstrap
|
cmd /c bootstrap
|
||||||
b2 -d0 headers
|
b2 -d0 headers
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user