Skip to content

Commit

Permalink
make PDFs: add log as artifact, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 4, 2024
1 parent 5173d62 commit 83b97fa
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/make-pdf-1-select.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: tex-cache
key: latex-build-files

- name: ls chapters
run: ls -l chapters/
Expand All @@ -59,6 +59,7 @@ jobs:

- name: install PDF requirements
run: |
# not: to save time
# sudo apt update > /dev/null
sh scripts/install_requirements_pdf.sh > /dev/null
Expand All @@ -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
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/make-pdf-6-parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,17 +28,26 @@ jobs:
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: tex-cache
key: latex-build-files

- name: install requirements
run: sh scripts/install_requirements_pdf.sh > /dev/null
- name: install PDF requirements
run: |
# not: to save time
# sudo apt update > /dev/null
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"
4 changes: 2 additions & 2 deletions .github/workflows/make-pdf-all-serial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: tex-cache
key: latex-build-files

- name: install requirements
- name: install PDF requirements
run: |
sudo apt update > /dev/null
sh scripts/install_requirements_pdf.sh > /dev/null
Expand Down

0 comments on commit 83b97fa

Please sign in to comment.