Skip to content

Commit

Permalink
Update gh action zauguin/install-texlive to v2
Browse files Browse the repository at this point in the history
which has caching integrated. Drop no longer needed caching steps.

See zauguin/install-texlive@v1.2.1...v2.0.0
  • Loading branch information
muzimuzhi authored and josephwright committed Feb 20, 2023
1 parent 6927210 commit 129159f
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/main.yaml
Expand Up @@ -13,29 +13,10 @@ jobs:
# Boilerplate
- name: Checkout repository
uses: actions/checkout@v3
# GitHub Actions don't regenerate the test if the key doesn't change, so
# we integrate a random UUID into the key to keep them different.
# DO NOT CHANGE THIS
- name: Generate unique ID
id: get-id
run: |
echo "id=$(cat /proc/sys/kernel/random/uuid)" >> $GITHUB_STATE
# Actually load the cache. Since we never reuse the key, we need restore-keys
# to indicate the prefix of our caches. This loads the newest cache with this
# prefix in the key.
#
# If we want to force regeneration of the cache, increase the number after
# *both* instances of "texlive-v"
- name: Load cache
uses: actions/cache@v3
with:
path: ~/texlive
key: texlive-v0-${{ steps.get-id.outputs.id }}
restore-keys: texlive-v0-
# We need Ghostscript for XeTeX tests.
- run: sudo apt-get install ghostscript
- name: Install TeX Live
uses: zauguin/install-texlive@v1
uses: zauguin/install-texlive@v2
with:
# List the required TeX Live packages in a separate file to allow reuse in
# different workflows.
Expand Down

0 comments on commit 129159f

Please sign in to comment.