From 79677b244d7045d3e76bf333a086ad05e4a6fa6d Mon Sep 17 00:00:00 2001 From: Juko Laptop Date: Tue, 19 Dec 2023 22:48:31 +0100 Subject: [PATCH] switch to BasicTex for Mac Tests --- .github/workflows/r-cmd-check.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/r-cmd-check.yml b/.github/workflows/r-cmd-check.yml index f061ab1..06fdb17 100644 --- a/.github/workflows/r-cmd-check.yml +++ b/.github/workflows/r-cmd-check.yml @@ -20,6 +20,16 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Cache LaTeX packages + uses: actions/cache@v2 + with: + path: | + /usr/local/texlive + ~/Library/TinyTeX + ~/AppData/Roaming/TinyTeX + key: ${{ runner.os }}-texlive-${{ hashFiles('**/DESCRIPTION') }} + restore-keys: ${{ runner.os }}-texlive- + - name: Set up R uses: r-lib/actions/setup-r@v2 with: @@ -46,9 +56,9 @@ jobs: - name: Install macOS system dependencies if: runner.os == 'macOS' run: | - brew install --cask mactex - echo "/Library/TeX/texbin" | sudo tee -a /etc/paths - sudo /Library/TeX/texbin/tlmgr update --self --all + brew install --cask basictex + sudo /usr/local/texlive/2021basic/bin/x86_64-darwin/tlmgr update --self --all + echo "/usr/local/texlive/2021basic/bin/x86_64-darwin" | sudo tee -a /etc/paths - name: Install rJava and other R dependencies run: |