[latex3-commits] [git/LaTeX3-latex3-latex2e] actions-daily-central: Actions experiment (059281b3)
Marcel Fabian Krüger
tex at 2krueger.de
Mon Feb 27 21:41:24 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : actions-daily-central
Link : https://github.com/latex3/latex2e/commit/059281b3a6a515fbf3b4ef9b2584e9dcc17d0dc3
>---------------------------------------------------------------
commit 059281b3a6a515fbf3b4ef9b2584e9dcc17d0dc3
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Feb 27 20:10:31 2023 +0100
Actions experiment
>---------------------------------------------------------------
059281b3a6a515fbf3b4ef9b2584e9dcc17d0dc3
.github/workflows/main.yaml | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 71fa5114..261473d7 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -13,6 +13,23 @@ 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
+ - 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 +89,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.