Skip to content

Commit

Permalink
Merge pull request #35 from aobolensk/cache-tex-deps
Browse files Browse the repository at this point in the history
[CI] Cache TeX depencencies installed by apt
  • Loading branch information
allnes authored Oct 6, 2024
2 parents 01b8ee6 + 1c629fb commit 649065c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand All @@ -34,6 +33,13 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Cache brew packages
uses: actions/cache@v4
with:
path: /usr/local/Homebrew
key: ${{ runner.os }}-brew-${{ hashFiles('brew.txt') }}
restore-keys: |
${{ runner.os }}-brew-
- name: Setup environment
run: |
brew install --cask mactex
Expand Down

0 comments on commit 649065c

Please sign in to comment.