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
|
- name: checkout repository
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
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
|
uses: https://code.forgejo.org/actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: /var/lib/apt/lists
|
path: /var/lib/apt/lists
|
||||||
key: ${{ runner.os }}-texlive
|
key: ${{ runner.os }}-texlive-full
|
||||||
|
|
||||||
- name: install LaTeX
|
- name: install full TeX Live
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
sudo apt-get update
|
||||||
apt-get install -y texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
|
sudo apt-get install -y texlive-full
|
||||||
|
|
||||||
- name: compile LaTeX document
|
- name: compile LaTeX document
|
||||||
run: |
|
run: |
|
||||||
|
@ -32,9 +32,9 @@ jobs:
|
||||||
path: main.pdf
|
path: main.pdf
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: cache LaTeX packages
|
- name: cache apt lists
|
||||||
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||||
uses: https://code.forgejo.org/actions/cache/save@v4
|
uses: https://code.forgejo.org/actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: /var/lib/apt/lists
|
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