Update build & CI for modular Boost.

This commit is contained in:
Rene Rivera
2024-04-13 10:25:12 -05:00
parent b4bb556d09
commit 4101f7aee8

View File

@@ -7,6 +7,7 @@ on:
- master
- develop
- feature/**
- modular
env:
UBSAN_OPTIONS: print_stacktrace=1
@@ -149,19 +150,16 @@ jobs:
- name: Setup Boost
run: |
echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY
echo GITHUB_BASE_REF: $GITHUB_BASE_REF
echo GITHUB_REF: $GITHUB_REF
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
REF=${REF#refs/heads/}
echo REF: $REF
BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
BOOST_BRANCH=develop && ( test "${GITHUB_REF_NAME}" == "master" || test "${GITHUB_REF_NAME}" == "modular" ) && BOOST_BRANCH=${GITHUB_REF_NAME} || true
BOOST_GIT=https://github.com/${GITHUB_REPOSITORY/quickbook/boost}.git
echo BOOST_GIT: ${BOOST_GIT}
echo BOOST_BRANCH: $BOOST_BRANCH
cd ..
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
git clone -b $BOOST_BRANCH --depth 1 "${BOOST_GIT}" boost-root
cd boost-root
git submodule update --init
rm -rf tools/quickbook/*
cp -r $GITHUB_WORKSPACE/* tools/quickbook
git submodule update --init tools/boostdep
python3 tools/boostdep/depinst/depinst.py --git_args "--jobs 3" ../tools/quickbook
./bootstrap.sh
./b2 -d0 headers
@@ -173,7 +171,7 @@ jobs:
- name: Run tests
run: |
cd ../boost-root
./b2 -j3 tools/quickbook/test toolset=${{matrix.toolset}} variant=debug,release
./b2 tools/quickbook//all toolset=${{matrix.toolset}} variant=debug,release
windows:
strategy:
@@ -203,18 +201,19 @@ jobs:
- name: Setup Boost
shell: cmd
run: |
echo GITHUB_BASE_REF: %GITHUB_BASE_REF%
echo GITHUB_REF: %GITHUB_REF%
if "%GITHUB_BASE_REF%" == "" set GITHUB_BASE_REF=%GITHUB_REF%
echo GITHUB_REPOSITORY: %GITHUB_REPOSITORY%
set BOOST_BRANCH=develop
for /f %%i in ("%GITHUB_BASE_REF%") do if "%%~nxi" == "master" set BOOST_BRANCH=master
if "%GITHUB_REF_NAME%" == "master" set BOOST_BRANCH=master
if "%GITHUB_REF_NAME%" == "modular" set BOOST_BRANCH=modular
set BOOST_GIT=https://github.com/%GITHUB_REPOSITORY:quickbook=boost%.git
echo BOOST_GIT: %BOOST_GIT%
echo BOOST_BRANCH: %BOOST_BRANCH%
cd ..
git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
git clone -b %BOOST_BRANCH% --depth 1 %BOOST_GIT% boost-root
cd boost-root
git submodule update --init
rd /s/q tools\quickbook
xcopy /s /e /q %GITHUB_WORKSPACE% tools\quickbook\
git submodule update --init tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" ../tools/quickbook
cmd /c bootstrap
b2 -d0 headers
@@ -222,4 +221,4 @@ jobs:
shell: cmd
run: |
cd ../boost-root
b2 -j3 tools/quickbook/test toolset=${{matrix.toolset}} variant=debug,release embed-manifest-via=linker
b2 tools/quickbook//all toolset=${{matrix.toolset}} variant=debug,release embed-manifest-via=linker