From 1dec43e0f96fa1523a1f7da0516ef2362737de41 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Mon, 30 Sep 2024 21:13:50 +0300 Subject: [PATCH] [CI] Fix TeX build directory and force quit if build has failed --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4b9733..9bbb956 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: sudo apt-get install texlive* - name: Build run: | - find . -iname '*.tex' -exec pdflatex {} \; + find . -iname '*.tex' -execdir pdflatex -output-directory $GITHUB_WORKSPACE {} \; || exit 1 - uses: actions/upload-artifact@v4 with: name: pdf-linux @@ -39,7 +39,7 @@ jobs: - name: Build run: | eval "$(/usr/libexec/path_helper)" - find . -iname '*.tex' -exec pdflatex {} \; + find . -iname '*.tex' -execdir pdflatex -output-directory $GITHUB_WORKSPACE {} \; || exit 1 - uses: actions/upload-artifact@v4 with: name: pdf-macos