|
38 | 38 | uses: boostorg/boost-ci/.github/workflows/reusable.yml@master |
39 | 39 | with: |
40 | 40 | 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 |
42 | 42 | secrets: |
43 | 43 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
44 | 44 | COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }} |
45 | 45 | 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