From dffc2bf8f3341f7ae1612654a787bc5280ba62d6 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 6 Oct 2024 19:15:40 +0300 Subject: [PATCH] [CI] Cache TeX depencencies installed by apt --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 782c207..aba3dbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Setup environment - run: | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install ninja-build - sudo apt-get install texlive* + - name: Install apt dependencies with cache + uses: awalsh128/cache-apt-pkgs-action@v1.4.2 + with: + packages: ninja-build texlive-base texlive-latex-extra + version: 1.0 - name: Build run: | find . -iname '*.tex' -execdir pdflatex -output-directory $GITHUB_WORKSPACE {} \; || exit 1