@@ -52,23 +52,28 @@ jobs:
5252 COVERITY_SCAN_TOKEN : ${{ secrets.COVERITY_SCAN_TOKEN }}
5353
5454 antora :
55- if : ${{ (github.repository_owner == 'boostorg' && github.ref_name == 'master') || (github.repository_owner == 'jll63' && github.ref_name == 'feature/doc') }}
56- name : Antora Docs
57- runs-on : ubuntu-latest
55+ name : Antora docs
56+ strategy :
57+ matrix :
58+ include :
59+ - { name: Windows, os: windows-latest }
60+ - { name: Ubuntu, os: ubuntu-latest }
61+ - { name: macOS, os: macos-15 }
62+ runs-on : ${{ matrix.os }}
5863 defaults :
5964 run :
6065 shell : bash
6166 steps :
6267 - name : Install packages
63- uses : alandefreitas/cpp-actions/package-install@v1.8.10
68+ uses : alandefreitas/cpp-actions/package-install@v1.8.8
6469 with :
6570 apt-get : git cmake
6671
6772 - name : Clone Boost.OpenMethod
6873 uses : actions/checkout@v4
6974
7075 - name : Clone Boost
71- uses : alandefreitas/cpp-actions/boost-clone@v1.8.10
76+ uses : alandefreitas/cpp-actions/boost-clone@v1.8.8
7277 id : boost-clone
7378 with :
7479 branch : ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
8085 with :
8186 node-version : 18
8287
83- - name : Build Antora Docs
88+ - name : Setup Ninja
89+ if : runner.os == 'Windows'
90+ uses : seanmiddleditch/gha-setup-ninja@v5
91+
92+ - name : Build Antora docs
8493 env :
8594 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8695 run : |
@@ -89,27 +98,20 @@ jobs:
8998 cd ..
9099 BOOST_SRC_DIR="$(pwd)/boost-source"
91100 export BOOST_SRC_DIR
92- cd openmethod
93101
102+ cd openmethod
94103 cd doc
95104 bash ./build_antora.sh
96105
97- # Antora returns zero even if it fails, so we check if the site directory exists
98- if [ ! -d "build/site" ]; then
106+ # Antora returns zero even if it fails, so we check if the site directory exists.
107+ if [ ! -d "html" ]
108+ then
99109 echo "Antora build failed"
100110 exit 1
101111 fi
102112
103- - name : Create Antora Docs Artifact
113+ - name : Create Antora docs artifact
104114 uses : actions/upload-artifact@v4
105115 with :
106116 name : antora-docs-${{ matrix.name }}
107- path : doc/build/site
108-
109- - name : Upload static files as artifact
110- uses : actions/upload-pages-artifact@v3
111- with :
112- path : doc/build/site
113-
114- - name : Deploy to GitHub Pages
115- uses : actions/deploy-pages@v4
117+ path : doc/html
0 commit comments