[latex3-commits] [git/LaTeX3-latex3-latex2e] actions-daily-central: Actions experiment (ff21de70)

Marcel Fabian Krüger tex at 2krueger.de
Mon Feb 27 20:26:32 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : actions-daily-central
Link       : https://github.com/latex3/latex2e/commit/ff21de7064bf13dba3a1332bd4bed66cfbe1196e

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

commit ff21de7064bf13dba3a1332bd4bed66cfbe1196e
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon Feb 27 20:10:31 2023 +0100

    Actions experiment


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

ff21de7064bf13dba3a1332bd4bed66cfbe1196e
 .github/workflows/main.yaml | 31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 71fa5114..71ff869a 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -13,6 +13,25 @@ on:
 # requests get tested even if their branch comes from a fork.
 
 jobs:
+  # Update the TeX Live tree if necessary
+  texlive-cache:
+    runs-on: ubuntu-20.04
+    name: Update TeX Live
+    outputs:
+      cache_key: ${{ steps.texlive.outputs.cache_key }}
+    steps:
+      # Boilerplate
+      - name: Checkout repository
+        uses: actions/checkout at v3
+      # We need Ghostscript for dvips and XeTeX tests.
+      - run: sudo apt-get update && sudo apt-get install ghostscript
+      - name: Install TeX Live
+        id: texlive
+        uses: zauguin/install-texlive at v3.0.0-alpha.1
+        with:
+          # List the required TeX Live packages in a separate file to allow reuse in
+          # different workflows.
+          package_file: .github/tl_packages
   # The l3build job contains the actual work. We misuse the matrix mechanism to
   # create three jobs which only differ in minimal elements.
   # For tags we do not run this since we run the release job instead.
@@ -72,18 +91,20 @@ jobs:
             l3build_cmd: cd required && l3build doc -q -H --show-log-on-error
             artifact_name: Documentation
     name: ${{ matrix.name }}
+    needs: texlive-cache
     steps:
       # Boilerplate
       - name: Checkout repository
         uses: actions/checkout at v3
       # 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 v2
+      - name: Restore TeX Live from cache
+        uses: actions/cache/restore at v3
         with:
-          # List the required TeX Live packages in a separate file to allow reuse in
-          # different workflows.
-          package_file: .github/tl_packages
+          path: ~/texlive
+          key: ${{ needs.texlive-cache.outputs.cache_key }}
+          fail-on-cache-miss: true
+      - run: echo $HOME/texlive/bin/x86_64-linux >> $GITHUB_PATH
       - name: Run l3build
         run: ${{ matrix.l3build_cmd }}
       # Now we create the artifacts: There are two cases where this happens.





More information about the latex3-commits mailing list.