Unverified Commit cb89de8b authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] fix LaTeX tools installation in R jobs (fixes #5802) (#5807)

parent 5f261c42
...@@ -77,13 +77,14 @@ fi ...@@ -77,13 +77,14 @@ fi
# Installing R precompiled for Mac OS 10.11 or higher # Installing R precompiled for Mac OS 10.11 or higher
if [[ $OS_NAME == "macos" ]]; then if [[ $OS_NAME == "macos" ]]; then
brew update-reset && brew update
if [[ $R_BUILD_TYPE == "cran" ]]; then if [[ $R_BUILD_TYPE == "cran" ]]; then
brew install automake || exit -1 brew install automake || exit -1
fi fi
brew install \ brew install \
checkbashisms \ checkbashisms \
qpdf || exit -1 qpdf || exit -1
brew install --cask basictex || exit -1 brew install basictex || exit -1
export PATH="/Library/TeX/texbin:$PATH" export PATH="/Library/TeX/texbin:$PATH"
sudo tlmgr --verify-repo=none update --self || exit -1 sudo tlmgr --verify-repo=none update --self || exit -1
sudo tlmgr --verify-repo=none install inconsolata helvetic rsfs || exit -1 sudo tlmgr --verify-repo=none install inconsolata helvetic rsfs || exit -1
......
...@@ -197,6 +197,9 @@ jobs: ...@@ -197,6 +197,9 @@ jobs:
env: env:
CTAN_MIRROR: https://ctan.math.illinois.edu/systems/win32/miktex CTAN_MIRROR: https://ctan.math.illinois.edu/systems/win32/miktex
TINYTEX_INSTALLER: TinyTeX TINYTEX_INSTALLER: TinyTeX
# pinning to an old version to address breaking changes to paths not being available yet
# (ref: https://github.com/r-lib/actions/issues/713#issuecomment-1481293175)
TINYTEX_VERSION: '2023.03'
- name: Setup and run tests on Linux and macOS - name: Setup and run tests on Linux and macOS
if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest' if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest'
shell: bash shell: bash
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment