@@ -246,3 +246,65 @@ jobs:
246246 run : |
247247 cd ../boost-root
248248 b2 -j3 tools/quickbook/test toolset=${{matrix.toolset}} variant=debug,release embed-manifest-via=linker
249+
250+ posix-cmake :
251+
252+ runs-on : ubuntu-latest
253+
254+ steps :
255+ - uses : actions/checkout@v6
256+
257+ - name : Install Boost
258+ run : |
259+ echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY
260+ echo GITHUB_BASE_REF: $GITHUB_BASE_REF
261+ echo GITHUB_REF: $GITHUB_REF
262+ REF=${GITHUB_BASE_REF:-$GITHUB_REF}
263+ REF=${REF#refs/heads/}
264+ echo REF: $REF
265+ BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
266+ echo BOOST_BRANCH: $BOOST_BRANCH
267+ cd ..
268+ git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
269+ cd boost-root
270+ cp -r $GITHUB_WORKSPACE/* tools/quickbook
271+ git submodule update --init tools/boostdep
272+ python3 tools/boostdep/depinst/depinst.py -X test --git_args "--jobs 3" ../tools/quickbook
273+ ./bootstrap.sh
274+ ./b2 --prefix=$HOME/.local install
275+
276+ - name : Build Quickbook with CMake
277+ run : |
278+ cmake -S . -B __build__ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local
279+ cmake --build __build__ --target install
280+
281+ windows-cmake :
282+
283+ runs-on : windows-latest
284+
285+ steps :
286+ - uses : actions/checkout@v6
287+
288+ - name : Install Boost
289+ shell : cmd
290+ run : |
291+ echo GITHUB_REPOSITORY: %GITHUB_REPOSITORY%
292+ echo GITHUB_BASE_REF: %GITHUB_BASE_REF%
293+ echo GITHUB_REF: %GITHUB_REF%
294+ if "%GITHUB_BASE_REF%" == "" set GITHUB_BASE_REF=%GITHUB_REF%
295+ set BOOST_BRANCH=develop
296+ for /f %%i in ("%GITHUB_BASE_REF%") do if "%%~nxi" == "master" set BOOST_BRANCH=master
297+ echo BOOST_BRANCH: %BOOST_BRANCH%
298+ cd ..
299+ git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
300+ cd boost-root
301+ xcopy /s /e /q %GITHUB_WORKSPACE% tools\quickbook\
302+ git submodule update --init tools/boostdep
303+ python tools/boostdep/depinst/depinst.py -X test --git_args "--jobs 3" ../tools/quickbook
304+ cmd /c bootstrap
305+ b2 install
306+
307+ - name : Build Quickbook with CMake
308+ run : |
309+ cmake -S . -B __build__ -DBoost_ROOT=C:/Boost -DCMAKE_INSTALL_PREFIX=C:/usr/local
310+ cmake --build __build__ --target install --config Release
0 commit comments