Skip to content

Commit 6c23f34

Browse files
Build BRiCk documentation in CI.
1 parent 8d95e1b commit 6c23f34

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
7070
7171
workspace-success:
72-
needs: [opam-build, full-build]
72+
needs: [opam-build, build-brick-docs, full-build]
7373
if: always()
7474
runs-on: ubuntu-latest
7575
steps:
@@ -78,6 +78,8 @@ jobs:
7878
run: |
7979
echo "Checking that opam-build succeeded"
8080
${{ needs.opam-build.result == 'success' && 'true' || 'false' }}
81+
echo "Checking that build-brick-docs succeeded"
82+
${{ needs.build-brick-docs.result == 'success' && 'true' || 'false' }}
8183
echo "Checking that full-build succeeded"
8284
${{ needs.full-build.result == 'success' && 'true' || 'false' }}
8385
@@ -109,6 +111,44 @@ jobs:
109111
source ${{ env.BOILERPLATE }}
110112
./fmdeps/fm-ci/docker/opam_build.sh "${{ env.ROCQ_LOG_PREFIX }}" '${{ env.OPAM_PACKAGES }}'
111113
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+
112152
full-build:
113153
needs: gen-job
114154
defaults:

0 commit comments

Comments
 (0)