diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a2e6898ded..fc2cefbb3a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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