Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 7 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,28 +249,15 @@ jobs:
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.4.52"
- name: Emit book logs to tmp.txt, fail if build logs contain 'ERROR'
- name: Build docs book
run: |
MDBOOK_preprocessor__FORC_documenter__STRICT="true" mdbook build docs/book 2>&1 | tee tmp.txt
if cat tmp.txt | grep 'ERROR'
then
cat tmp.txt
rm tmp.txt && exit 1
else
rm tmp.txt && exit 0
fi

- name: Emit reference logs to tmp.txt, fail if build logs contain 'ERROR'
set -o pipefail
MDBOOK_preprocessor__FORC_documenter__STRICT="true" mdbook build docs/book 2>&1 | tee /tmp/mdbook-docs-book.log

- name: Build reference book
run: |
mdbook build docs/reference
mdbook build docs/reference &> tmp.txt
if cat tmp.txt | grep 'ERROR'
then
cat tmp.txt
rm tmp.txt && exit 1
else
rm tmp.txt && exit 0
fi
set -o pipefail
mdbook build docs/reference 2>&1 | tee /tmp/mdbook-reference.log

build-forc-doc-sway-lib-std:
runs-on: ubuntu-latest
Expand Down