From 3e480b3074bc374436f9d9e7fffed1fe5d2d107b Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Thu, 5 Oct 2023 23:11:00 +0200 Subject: [PATCH] Use action for TexLive --- .github/workflows/ci.yml | 4 +++- texlive/texlive.profile | 10 ---------- texlive/texlive_install.sh | 33 --------------------------------- 3 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 texlive/texlive.profile delete mode 100644 texlive/texlive_install.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edf417d..65550fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,9 @@ jobs: - uses: actions/checkout@v3 - run: mkdir $HOME/.fonts && unzip panno_3.00.zip -d $HOME/.fonts - run: fc-cache -f -v - - run: source ./texlive/texlive_install.sh + - uses: teatimeguest/setup-texlive-action@v2 + with: + package-file: texlive/texlive_packages - run: make example.pdf - uses: actions/upload-artifact@v3 with: diff --git a/texlive/texlive.profile b/texlive/texlive.profile deleted file mode 100644 index 6826d13..0000000 --- a/texlive/texlive.profile +++ /dev/null @@ -1,10 +0,0 @@ -selected_scheme scheme-basic -TEXDIR /tmp/texlive -TEXMFCONFIG ~/.texlive/texmf-config -TEXMFHOME ~/texmf -TEXMFLOCAL /tmp/texlive/texmf-local -TEXMFSYSCONFIG /tmp/texlive/texmf-config -TEXMFSYSVAR /tmp/texlive/texmf-var -TEXMFVAR ~/.texlive/texmf-var -option_doc 0 -option_src 0 \ No newline at end of file diff --git a/texlive/texlive_install.sh b/texlive/texlive_install.sh deleted file mode 100644 index 7a36714..0000000 --- a/texlive/texlive_install.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env sh - -# Originally from https://github.com/latex3/latex3 - -# This script is used for building LaTeX files using Travis -# A minimal current TL is installed adding only the packages that are -# required - -# See if there is a cached version of TL available -export PATH=/tmp/texlive/bin/x86_64-linux:$PATH -if ! command -v texlua > /dev/null; then - # Obtain TeX Live - wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz - tar -xzf install-tl-unx.tar.gz - cd install-tl-20* || exit - - # Install a minimal system - ./install-tl --profile=../texlive/texlive.profile - - cd .. -fi - -# Just including texlua so the cache check above works -tlmgr install luatex - -# We specify the directory in which it is located texlive_packages -tlmgr install $(sed 's/\s*#.*//;/^\s*$/d' texlive/texlive_packages) - -# Keep no backups (not required, simply makes cache bigger) -tlmgr option -- autobackup 0 - -# Update the TL install but add nothing new -tlmgr update --self --all --no-auto-install \ No newline at end of file