This commit is contained in:
parent
0d1e98d501
commit
e7a6d49130
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue