Skip to content

Commit

Permalink
Fix: Increase LaTeX memory limits in GitHub workflow
Browse files Browse the repository at this point in the history
The GitHub workflow was failing to compile the PDF due to exceeding TeX's memory capacity. This commit increases the memory limits for `main_memory` and `pool_size` in the `texmf.cnf` configuration file to resolve this issue.

The `fmtutil-sys --all` command is used to rebuild the LaTeX format files with the new memory settings. This ensures that the changes are applied correctly during the PDF compilation process.

This fix addresses the "TeX capacity exceeded" error and enables the workflow to successfully generate the PDF output.
  • Loading branch information
fschledorn committed Nov 24, 2024
1 parent eebda26 commit 803d61e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,34 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: xu-cheng/texlive-action/full@v1

- name: Install LaTeX
uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add make
apk add g++
apk add zip
make script zip
- name: Increase LaTeX memory
run: |
sudo sed -i 's/main_memory = 1500000/main_memory = 4000000/' /usr/local/texlive/texmf-dist/web2c/texmf.cnf
sudo sed -i 's/pool_size = 5000000/pool_size = 8000000/' /usr/local/texlive/texmf-dist/web2c/texmf.cnf
sudo fmtutil-sys --all
- name: Build PDF
run: |
make script zip
- uses: actions/upload-artifact@v4
with:
name: PDF
path: vorkurs.pdf

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
vorkurs.pdf
vorkurs.zip

0 comments on commit 803d61e

Please sign in to comment.