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 9f3b4ed commit 8d979ed
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 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 @@ -30,6 +30,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
chapters/*.aux
chapters/*.aux
hpmor*.aux
hpmor*.fdb_latexmk
Expand All @@ -38,7 +39,7 @@ jobs:
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: tex-cache
key: latex

- name: ls chapters
run: ls -l chapters/
Expand Down Expand Up @@ -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
14 changes: 10 additions & 4 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,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"
2 changes: 1 addition & 1 deletion .github/workflows/make-pdf-all-serial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: tex-cache
key: latex

- name: install requirements
run: |
Expand Down

0 comments on commit 8d979ed

Please sign in to comment.