Skip to content

Commit e6dbb77

Browse files
committed
ci.yml: adopt reusable workflow
1 parent 421e006 commit e6dbb77

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,70 @@ jobs:
3838
uses: boostorg/boost-ci/.github/workflows/reusable.yml@master
3939
with:
4040
exclude_cxxstd: '98,03,0x,11,14'
41-
exclude_compiler: gcc-4.9,gcc-5,gcc-6,,gcc-7,gcc-8,clang-3.9,clang-4.0,clang-5.0,clang-6.0,clang-7.0,clang-8.0
41+
exclude_compiler: gcc-4.9,gcc-5,gcc-6,clang-3.9,clang-4.0,clang-5.0
4242
secrets:
4343
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4444
COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}
4545
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
46+
47+
antora:
48+
name: Antora Docs
49+
runs-on: ubuntu-latest
50+
defaults:
51+
run:
52+
shell: bash
53+
steps:
54+
- name: Install packages
55+
uses: alandefreitas/cpp-actions/package-install@v1.8.10
56+
with:
57+
apt-get: git cmake
58+
59+
- name: Clone Boost.OpenMethod
60+
uses: actions/checkout@v4
61+
62+
- name: Clone Boost
63+
uses: alandefreitas/cpp-actions/boost-clone@v1.8.10
64+
id: boost-clone
65+
with:
66+
branch: ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
67+
boost-dir: ../boost-source
68+
scan-modules-dir: .
69+
scan-modules-ignore: openmethod
70+
71+
- uses: actions/setup-node@v4
72+
with:
73+
node-version: 18
74+
75+
- name: Build Antora Docs
76+
# env:
77+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
run: |
79+
git config --global --add safe.directory "$(pwd)"
80+
81+
cd ..
82+
BOOST_SRC_DIR="$(pwd)/boost-source"
83+
export BOOST_SRC_DIR
84+
cd openmethod
85+
86+
cd doc
87+
bash ./build_antora.sh
88+
89+
# Antora returns zero even if it fails, so we check if the site directory exists
90+
if [ ! -d "build/site" ]; then
91+
echo "Antora build failed"
92+
exit 1
93+
fi
94+
95+
- name: Create Antora Docs Artifact
96+
uses: actions/upload-artifact@v4
97+
with:
98+
name: antora-docs-${{ matrix.name }}
99+
path: doc/build/site
100+
101+
- name: Upload static files as artifact
102+
uses: actions/upload-pages-artifact@v3
103+
with:
104+
path: doc/build/site
105+
106+
- name: Deploy to GitHub Pages
107+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)