Skip to content

Commit ca1865a

Browse files
Build BRiCk documentation in CI.
1 parent 03f0d7e commit ca1865a

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# MAINTENANCE NOTE: Must depend on all "actual" jobs
7878
workspace-success:
7979
name: "Check if CI succeeded"
80-
needs: [opam-build, full-build, python-build]
80+
needs: [opam-build, full-build, python-build, build-brick-docs]
8181
if: always()
8282
runs-on: ubuntu-latest
8383
steps:
@@ -90,6 +90,8 @@ jobs:
9090
${{ needs.full-build.result == 'success' && 'true' || 'false' }}
9191
echo "Checking that python-build succeeded"
9292
${{ needs.python-build.result == 'success' && 'true' || 'false' }}
93+
echo "Checking that build-brick-docs succeeded"
94+
${{ needs.build-brick-docs.result == 'success' && 'true' || 'false' }}
9395
9496
# Regular jobs [should] follow the template of `opam-build` up to
9597
# `checkout_workspace`, and then add their payload.
@@ -236,6 +238,42 @@ jobs:
236238
export PATH=$(pwd)/_build/install/default/bin:$PATH
237239
uv --directory ${{ matrix.project-dir }} run task ${{ matrix.task }}
238240
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
239277

240278
# Unlike opam-build, this job invokes checkout_workspace twice not once.
241279
full-build:

0 commit comments

Comments
 (0)