From 9219965dc50cd8222abd8d58989c1fee8ac0c2d8 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sun, 5 Jan 2025 21:43:43 +0530 Subject: [PATCH] Cache apt packages (#7978) * Cache apt packages * Match apt cache key with OS version That way it's easier to remember updating the key when the OS version is changed. --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5056c7f7eb..b3273a6f42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: doc-type: ['HTML', 'EPUB', 'PDF'] @@ -33,10 +33,10 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - - name: Install packages - run: | - sudo apt update - sudo apt install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-lang-all + - uses: awalsh128/cache-apt-pkgs-action@v1 + with: + packages: texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-lang-all + version: ubuntu-24.04 - name: Build Docs run: |