diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f69520..203257a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: