From 89e6133d32767e35fe340344624ef5bc9f041f61 Mon Sep 17 00:00:00 2001 From: Gregor Date: Sun, 6 Mar 2022 15:27:13 +0100 Subject: [PATCH] Invalidates cache on new texlive version This code is not tested yet --- .github/workflows/testing.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 3360f7e..dcb3869 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -29,12 +29,22 @@ jobs: - name: "install ghostscript" run: sudo apt-get install -y ghostscript + + # get TeX Live installer for cachekey + - name: "get TeX Live installer" + id: texlive-installer + shell: bash + run: | + t=$(mktemp) + wget 'http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz' -qO "$t" + echo "::set-output name=path::$t" - name: "setup TeX Live (via paolobrasolin)" uses: paolobrasolin/setup-texlive-action@v1 with: profile-path: ${{ github.workspace }}/.github/tex/texlive.profile.txt packages-path: ${{ github.workspace }}/.github/tex/packages.test.txt + cache-key: texlive-${{ hashFiles(steps.texlive-installer.outputs.path) }} - name: "install tikz-trackschematic" run: ./dev-install.sh -b