|
69 | 69 |
|
70 | 70 |
|
71 | 71 | workspace-success: |
72 | | - needs: [opam-build, full-build] |
| 72 | + needs: [opam-build, build-brick-docs, full-build] |
73 | 73 | if: always() |
74 | 74 | runs-on: ubuntu-latest |
75 | 75 | steps: |
|
78 | 78 | run: | |
79 | 79 | echo "Checking that opam-build succeeded" |
80 | 80 | ${{ needs.opam-build.result == 'success' && 'true' || 'false' }} |
| 81 | + echo "Checking that build-brick-docs succeeded" |
| 82 | + ${{ needs.build-brick-docs.result == 'success' && 'true' || 'false' }} |
81 | 83 | echo "Checking that full-build succeeded" |
82 | 84 | ${{ needs.full-build.result == 'success' && 'true' || 'false' }} |
83 | 85 |
|
@@ -109,6 +111,44 @@ jobs: |
109 | 111 | source ${{ env.BOILERPLATE }} |
110 | 112 | ./fmdeps/fm-ci/docker/opam_build.sh "${{ env.ROCQ_LOG_PREFIX }}" '${{ env.OPAM_PACKAGES }}' |
111 | 113 |
|
| 114 | + build-brick-docs: |
| 115 | + needs: gen-job |
| 116 | + defaults: |
| 117 | + run: |
| 118 | + shell: bash |
| 119 | + working-directory: ${{ env.WORKDIR }} |
| 120 | + runs-on: |
| 121 | + group: FM |
| 122 | + container: |
| 123 | + image: "ghcr.io/skylabsai/workspace:fm-default" |
| 124 | + options: "-v /cache:/cache:ro -v /home/coq/.ssh:/home/coq/.ssh -v /home/coq/dune_nfs/dune_cache:/home/coq/.cache --security-opt seccomp=/home/coq/seccomp.json" |
| 125 | + env: |
| 126 | + NJOBS: "16" |
| 127 | + BASH_ENV: "/home/coq/.profile" |
| 128 | + steps: |
| 129 | + - name: "Download CI files" |
| 130 | + uses: actions/download-artifact@v5 |
| 131 | + with: |
| 132 | + name: ${{ env.CI_FILES_ARTIFACT }} |
| 133 | + - name: "Prepare Workspace" |
| 134 | + uses: ./actions/prepare_workspace |
| 135 | + with: |
| 136 | + FM_CI_TOKEN: ${{ secrets.FM_CI_TOKEN }} |
| 137 | + - name: "Checkout Job Commits" |
| 138 | + uses: ./actions/checkout_workspace |
| 139 | + - id: build-brick-docs-job |
| 140 | + name: "Build BRiCk docs" |
| 141 | + run: | |
| 142 | + source ${{ env.BOILERPLATE }} |
| 143 | + cd fmdeps/BRiCk |
| 144 | + git submodule update --init |
| 145 | + make -j ${NJOBS} doc |
| 146 | + mv doc/sphinx/_build/html ${{ env.SCRATCHDIR }}/html |
| 147 | + - name: "Upload static files as artifact" |
| 148 | + uses: actions/upload-pages-artifact@v3 |
| 149 | + with: |
| 150 | + path: ${{ env.SCRATCHDIR }}/html |
| 151 | + |
112 | 152 | full-build: |
113 | 153 | needs: gen-job |
114 | 154 | defaults: |
|
0 commit comments