From 8d979ed78f3adb673d520207353a72c0488984ad Mon Sep 17 00:00:00 2001 From: Torben <59419684+entorb@users.noreply.github.com> Date: Thu, 4 Apr 2024 19:08:12 +0200 Subject: [PATCH] make PDFs: add log as artifact, etc --- .github/workflows/make-pdf-1-select.yml | 13 ++++++++++--- .github/workflows/make-pdf-6-parallel.yml | 14 ++++++++++---- .github/workflows/make-pdf-all-serial.yml | 2 +- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/make-pdf-1-select.yml b/.github/workflows/make-pdf-1-select.yml index 167d57f44..0bb809c7e 100644 --- a/.github/workflows/make-pdf-1-select.yml +++ b/.github/workflows/make-pdf-1-select.yml @@ -30,6 +30,7 @@ jobs: uses: actions/cache@v4 with: path: | + chapters/*.aux chapters/*.aux hpmor*.aux hpmor*.fdb_latexmk @@ -38,7 +39,7 @@ jobs: hpmor*.pdf hpmor*.toc hpmor*.xdv - key: tex-cache + key: latex - name: ls chapters run: ls -l chapters/ @@ -72,16 +73,22 @@ jobs: - name: make PDF run: | - latexmk "${{ github.event.inputs.pdf_target }}" + latexmk "${{ github.event.inputs.pdf_target }}" > /dev/null - name: publish PDF to release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: WorkInProgress prerelease: true files: | ./hpmor*.pdf + - name: upload log as artifact + uses: actions/upload-artifact@v4 + with: + name: "${{ github.event.inputs.pdf_target }}.log" + path: "${{ github.event.inputs.pdf_target }}.log" + - name: ls after run: | ls -l diff --git a/.github/workflows/make-pdf-6-parallel.yml b/.github/workflows/make-pdf-6-parallel.yml index 2b3673fa5..9a95ad8f5 100644 --- a/.github/workflows/make-pdf-6-parallel.yml +++ b/.github/workflows/make-pdf-6-parallel.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - part: [1, 2, 3, 4, 5, 6] # Define the parts to be processed in parallel + part: [hpmor-1, hpmor-2, hpmor-3, hpmor-4, hpmor-5, hpmor-6] steps: - name: checkout repository uses: actions/checkout@v4 @@ -28,17 +28,23 @@ jobs: hpmor*.pdf hpmor*.toc hpmor*.xdv - key: tex-cache + key: latex - name: install requirements run: sh scripts/install_requirements_pdf.sh > /dev/null - name: make PDF - run: latexmk hpmor-${{ matrix.part }} + run: latexmk ${{ matrix.part }} > /dev/null - name: publish PDF to release uses: softprops/action-gh-release@v2 with: tag_name: WorkInProgress prerelease: true - files: hpmor-${{ matrix.part }}.pdf + files: ${{ matrix.part }}.pdf + + - name: upload log as artifact + uses: actions/upload-artifact@v4 + with: + name: "${{ matrix.part }}.log" + path: "${{ matrix.part }}.log" diff --git a/.github/workflows/make-pdf-all-serial.yml b/.github/workflows/make-pdf-all-serial.yml index fc14f8e1f..d420b1fb7 100644 --- a/.github/workflows/make-pdf-all-serial.yml +++ b/.github/workflows/make-pdf-all-serial.yml @@ -26,7 +26,7 @@ jobs: hpmor*.pdf hpmor*.toc hpmor*.xdv - key: tex-cache + key: latex - name: install requirements run: |