[latex3-commits] [git/LaTeX3-latex3-latex3] main: Simplify GH Actions caching (1117b2478)

Marcel Fabian Krüger tex at 2krueger.de
Tue Nov 29 18:26:46 CET 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/1117b2478e5015bdbfac2ef97384bc9cdb215398

>---------------------------------------------------------------

commit 1117b2478e5015bdbfac2ef97384bc9cdb215398
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Nov 29 18:24:47 2022 +0100

    Simplify GH Actions caching


>---------------------------------------------------------------

1117b2478e5015bdbfac2ef97384bc9cdb215398
 .github/workflows/cache.yaml  | 21 +--------------------
 .github/workflows/deploy.yaml | 21 +--------------------
 .github/workflows/main.yaml   | 21 +--------------------
 3 files changed, 3 insertions(+), 60 deletions(-)

diff --git a/.github/workflows/cache.yaml b/.github/workflows/cache.yaml
index a224cd188..ca3b99eeb 100644
--- a/.github/workflows/cache.yaml
+++ b/.github/workflows/cache.yaml
@@ -17,27 +17,8 @@ jobs:
     runs-on: ubuntu-20.04
     name: Update TeX Live
     steps:
-      # 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" and synchronize the other workflow files.
-      - name: Load cache
-        uses: actions/cache at v3
-        with:
-          path: ~/texlive
-          key: texlive-v1-${{ steps.get-id.outputs.id }}
-          restore-keys: texlive-v1-
       - name: Install TeX Live
-        uses: zauguin/install-texlive at v1
+        uses: zauguin/install-texlive at v2
         with:
           # List the required TeX Live packages in a separate file to allow reuse in
           # different workflows.
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index d5234d7c9..9ab9334c4 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -17,29 +17,10 @@ jobs:
       # Boilerplate
       - name: Checkout repository
         uses: actions/checkout at v2
-      # 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 at v3
-        with:
-          path: ~/texlive
-          key: texlive-v1-${{ steps.get-id.outputs.id }}
-          restore-keys: texlive-v1-
       # We need Ghostscript for dvips and XeTeX tests.
       - run: sudo apt-get update && sudo apt-get install ghostscript
       - name: Install TeX Live
-        uses: zauguin/install-texlive at v1
+        uses: zauguin/install-texlive at v2
         with:
           # List the required TeX Live packages in a separate file to allow reuse in
           # different workflows.
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 9abdcec7d..c23b432b6 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -40,29 +40,10 @@ jobs:
       # Boilerplate
       - name: Checkout repository
         uses: actions/checkout at v2
-      # 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 at v3
-        with:
-          path: ~/texlive
-          key: texlive-v1-${{ steps.get-id.outputs.id }}
-          restore-keys: texlive-v1-
       # We need Ghostscript for dvips and XeTeX tests.
       - run: sudo apt-get update && sudo apt-get install ghostscript
       - name: Install TeX Live
-        uses: zauguin/install-texlive at v1
+        uses: zauguin/install-texlive at v2
         with:
           # List the required TeX Live packages in a separate file to allow reuse in
           # different workflows.





More information about the latex3-commits mailing list.