-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from aobolensk/cache-tex-deps
[CI] Cache TeX depencencies installed by apt
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|