Skip to content

Commit

Permalink
Merge pull request #40 from muzimuzhi/ci/drop-manual-caching
Browse files Browse the repository at this point in the history
Simplify GH Actions caching
  • Loading branch information
davidcarlisle committed Apr 24, 2024
2 parents bf5451c + 4d9108f commit 1aa87ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,6 @@ jobs:
# Boilerplate
- name: Checkout repository
uses: actions/checkout@v4
# 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 -n ::set-output name=id::
cat /proc/sys/kernel/random/uuid
# 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@v2
with:
path: ~/texlive
key: texlive-v0-${{ steps.get-id.outputs.id }}
restore-keys: texlive-v0-
- name: Install TeX Live
id: texlive
uses: zauguin/install-texlive@v3
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@ jobs:
# Boilerplate
- name: Checkout repository
uses: actions/checkout@v4
# 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 -n ::set-output name=id::
cat /proc/sys/kernel/random/uuid
# 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@v2
with:
path: ~/texlive
key: texlive-v0-${{ steps.get-id.outputs.id }}
restore-keys: texlive-v0-
- name: Install TeX Live
id: texlive
uses: zauguin/install-texlive@v3
Expand Down

0 comments on commit 1aa87ab

Please sign in to comment.