Skip to content

Commit ba63eeb

Browse files
committed
ci
1 parent 2e94a51 commit ba63eeb

File tree

4 files changed

+70465
-2
lines changed

4 files changed

+70465
-2
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,3 +453,55 @@ jobs:
453453
cmake -G "${{matrix.generator}}" -DBOOST_CI_INSTALL_TEST=ON -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.build_shared}} -DCMAKE_PREFIX_PATH=$HOME/local ..
454454
cmake --build . --config ${{matrix.build_type}} -j$B2_JOBS
455455
ctest --output-on-failure --build-config ${{matrix.build_type}}
456+
antora:
457+
name: Antora Docs
458+
defaults:
459+
run:
460+
shell: bash
461+
steps:
462+
- name: Install packages
463+
uses: alandefreitas/cpp-actions/[email protected]
464+
with:
465+
apt-get: git cmake
466+
467+
- name: Clone Boost.OpenMethod
468+
uses: actions/checkout@v4
469+
470+
- name: Clone Boost
471+
uses: alandefreitas/cpp-actions/[email protected]
472+
id: boost-clone
473+
with:
474+
branch: ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
475+
boost-dir: ../boost-source
476+
scan-modules-dir: .
477+
scan-modules-ignore: openmethod
478+
479+
- uses: actions/setup-node@v4
480+
with:
481+
node-version: 18
482+
483+
- name: Build Antora Docs
484+
env:
485+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
486+
run: |
487+
git config --global --add safe.directory "$(pwd)"
488+
489+
cd ..
490+
BOOST_SRC_DIR="$(pwd)/boost-source"
491+
export BOOST_SRC_DIR
492+
cd openmethod
493+
494+
cd doc
495+
bash ./build_antora.sh
496+
497+
# Antora returns zero even if it fails, so we check if the site directory exists
498+
if [ ! -d "build/site" ]; then
499+
echo "Antora build failed"
500+
exit 1
501+
fi
502+
503+
- name: Create Antora Docs Artifact
504+
uses: actions/upload-artifact@v4
505+
with:
506+
name: antora-docs-${{ matrix.name }}
507+
path: doc/build/site

doc/build_antora.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Distributed under the Boost Software License, Version 1.0. (See accompanying
55
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
66
#
7-
# Official repository: https://github.com/boostorg/url
7+
# Official repository: https://github.com/boostorg/openmethod
88
#
99

1010
set -xe
@@ -26,4 +26,3 @@ PATH="$(pwd)/node_modules/.bin:${PATH}"
2626
export PATH
2727
npx antora --clean --fetch "$PLAYBOOK" --stacktrace --log-level all
2828
echo "Done"
29-

0 commit comments

Comments
 (0)