Fix: Increase LaTeX memory limits in GitHub workflow #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install LaTeX | |
uses: xu-cheng/texlive-action/full@v1 | |
with: | |
run: | | |
apk add make | |
apk add g++ | |
apk add 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 |