|
77 | 77 | # MAINTENANCE NOTE: Must depend on all "actual" jobs |
78 | 78 | workspace-success: |
79 | 79 | name: "Check if CI succeeded" |
80 | | - needs: [opam-build, full-build, python-build] |
| 80 | + needs: [opam-build, full-build, python-build, build-brick-docs] |
81 | 81 | if: always() |
82 | 82 | runs-on: ubuntu-latest |
83 | 83 | steps: |
|
90 | 90 | ${{ needs.full-build.result == 'success' && 'true' || 'false' }} |
91 | 91 | echo "Checking that python-build succeeded" |
92 | 92 | ${{ needs.python-build.result == 'success' && 'true' || 'false' }} |
| 93 | + echo "Checking that build-brick-docs succeeded" |
| 94 | + ${{ needs.build-brick-docs.result == 'success' && 'true' || 'false' }} |
93 | 95 |
|
94 | 96 | # Regular jobs [should] follow the template of `opam-build` up to |
95 | 97 | # `checkout_workspace`, and then add their payload. |
@@ -236,6 +238,42 @@ jobs: |
236 | 238 | export PATH=$(pwd)/_build/install/default/bin:$PATH |
237 | 239 | uv --directory ${{ matrix.project-dir }} run task ${{ matrix.task }} |
238 | 240 |
|
| 241 | + build-brick-docs: |
| 242 | + needs: gen-job |
| 243 | + defaults: |
| 244 | + run: |
| 245 | + shell: bash |
| 246 | + working-directory: ${{ env.WORKDIR }} |
| 247 | + runs-on: |
| 248 | + group: FM |
| 249 | + container: |
| 250 | + image: "ghcr.io/skylabsai/workspace:fm-default" |
| 251 | + 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" |
| 252 | + env: |
| 253 | + NJOBS: "16" |
| 254 | + BASH_ENV: "/home/coq/.profile" |
| 255 | + steps: |
| 256 | + - name: "Download CI files" |
| 257 | + uses: actions/download-artifact@v5 |
| 258 | + with: |
| 259 | + name: ${{ env.CI_FILES_ARTIFACT }} |
| 260 | + - name: "Prepare Workspace" |
| 261 | + uses: ./actions/prepare_workspace |
| 262 | + with: |
| 263 | + FM_CI_TOKEN: ${{ secrets.FM_CI_TOKEN }} |
| 264 | + - name: "Checkout Job Commits" |
| 265 | + uses: ./actions/checkout_workspace |
| 266 | + - id: build-brick-docs-job |
| 267 | + name: "Build BRiCk docs" |
| 268 | + run: | |
| 269 | + source ${{ env.BOILERPLATE }} |
| 270 | + cd fmdeps/BRiCk |
| 271 | + make -j ${NJOBS} doc |
| 272 | + mv doc/sphinx/_build/html ${{ env.SCRATCHDIR }}/html |
| 273 | + - name: "Upload static files as artifact" |
| 274 | + uses: actions/upload-pages-artifact@v3 |
| 275 | + with: |
| 276 | + path: ${{ env.SCRATCHDIR }}/html |
239 | 277 |
|
240 | 278 | # Unlike opam-build, this job invokes checkout_workspace twice not once. |
241 | 279 | full-build: |
|
0 commit comments