Skip to content

Commit

Permalink
updated version of texlive, tried second fix of memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fschledorn authored Nov 24, 2024
1 parent 803d61e commit febf284
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,24 @@ jobs:
uses: actions/checkout@v2

- name: Install LaTeX
uses: xu-cheng/texlive-action/full@v1
uses: xu-cheng/texlive-action@v2
with:
run: |
apk add make
apk add g++
apk add zip
texlive_year: 'latest'
packages: make g++ zip

- name: Increase LaTeX memory
- name: Find texmf.cnf
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
find /usr/local/texlive -name texmf.cnf
- name: Increase LaTeX memory (if needed)
run: |
TEXMFCNF=$(find /usr/local/texlive -name texmf.cnf)
sudo sed -i 's/main_memory = 1500000/main_memory = 4000000/' "$TEXMFCNF"
sudo sed -i 's/pool_size = 5000000/pool_size = 8000000/' "$TEXMFCNF"
sudo fmtutil-sys --all
- name: Build PDF
run: |
make script zip
run: make script zip

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit febf284

Please sign in to comment.