diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e59597..26859af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: sudo apt-get install texlive* - name: Build run: | - find . -iname '*.tex' -exec pdflatex {} \; + find . -iname '*.tex' -exec sh -c 'cd $(echo {}|cut -d"/" -f2) && pdflatex -output-directory $GITHUB_WORKSPACE $GITHUB_WORKSPACE/{}' \; - uses: actions/upload-artifact@v4 with: name: pdf-linux @@ -30,7 +30,7 @@ jobs: - name: Build run: | eval "$(/usr/libexec/path_helper)" - find . -iname '*.tex' -exec pdflatex {} \; + find . -iname '*.tex' -exec sh -c 'cd $(echo {}|cut -d"/" -f2) && pdflatex -output-directory $GITHUB_WORKSPACE $GITHUB_WORKSPACE/{}' \; - uses: actions/upload-artifact@v4 with: name: pdf-macos diff --git a/00-handshake.tex b/00-handshake/00-handshake.tex similarity index 100% rename from 00-handshake.tex rename to 00-handshake/00-handshake.tex diff --git a/00-handshake.toc b/00-handshake/00-handshake.toc similarity index 100% rename from 00-handshake.toc rename to 00-handshake/00-handshake.toc diff --git a/01-intro.tex b/01-intro/01-intro.tex similarity index 100% rename from 01-intro.tex rename to 01-intro/01-intro.tex diff --git a/01-intro.toc b/01-intro/01-intro.toc similarity index 100% rename from 01-intro.toc rename to 01-intro/01-intro.toc diff --git a/02-repo-structure.tex b/02-repo-structure/02-repo-structure.tex similarity index 100% rename from 02-repo-structure.tex rename to 02-repo-structure/02-repo-structure.tex diff --git a/02-repo-structure.toc b/02-repo-structure/02-repo-structure.toc similarity index 100% rename from 02-repo-structure.toc rename to 02-repo-structure/02-repo-structure.toc diff --git a/03-mpi-api.tex b/03-mpi-api/03-mpi-api.tex similarity index 100% rename from 03-mpi-api.tex rename to 03-mpi-api/03-mpi-api.tex diff --git a/03-mpi-api.toc b/03-mpi-api/03-mpi-api.toc similarity index 100% rename from 03-mpi-api.toc rename to 03-mpi-api/03-mpi-api.toc diff --git a/04-parallelism-theory.tex b/04-parallelism-theory/04-parallelism-theory.tex similarity index 100% rename from 04-parallelism-theory.tex rename to 04-parallelism-theory/04-parallelism-theory.tex diff --git a/04-parallelism-theory.toc b/04-parallelism-theory/04-parallelism-theory.toc similarity index 100% rename from 04-parallelism-theory.toc rename to 04-parallelism-theory/04-parallelism-theory.toc diff --git a/template.tex b/template/template.tex similarity index 100% rename from template.tex rename to template/template.tex diff --git a/template.toc b/template/template.toc similarity index 100% rename from template.toc rename to template/template.toc