diff --git a/.forgejo/workflows/tex-build.yml b/.forgejo/workflows/tex-build.yml index 8ad4442..733e264 100644 --- a/.forgejo/workflows/tex-build.yml +++ b/.forgejo/workflows/tex-build.yml @@ -9,16 +9,16 @@ jobs: - name: checkout repository uses: https://code.forgejo.org/actions/checkout@v4 - - name: restore cached LaTeX packages + - name: restore cached apt lists uses: https://code.forgejo.org/actions/cache/restore@v4 with: path: /var/lib/apt/lists - key: ${{ runner.os }}-texlive + key: ${{ runner.os }}-texlive-full - - name: install LaTeX + - name: install full TeX Live run: | - apt-get update - apt-get install -y texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended + sudo apt-get update + sudo apt-get install -y texlive-full - name: compile LaTeX document run: | @@ -32,9 +32,9 @@ jobs: path: main.pdf if-no-files-found: error - - name: cache LaTeX packages + - name: cache apt lists if: ${{ github.ref_name == github.event.repository.default_branch }} uses: https://code.forgejo.org/actions/cache/save@v4 with: path: /var/lib/apt/lists - key: ${{ runner.os }}-texlive + key: ${{ runner.os }}-texlive-full