Skip to content

Commit

Permalink
[ci] fix LaTeX tools installation in R jobs (fixes microsoft#5802) (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudioSalvatoreArcidiacono committed Jun 5, 2023
1 parent 5f261c4 commit de83a23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/test_r_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ fi

# Installing R precompiled for Mac OS 10.11 or higher
if [[ $OS_NAME == "macos" ]]; then
brew update-reset && brew update
if [[ $R_BUILD_TYPE == "cran" ]]; then
brew install automake || exit -1
fi
brew install \
checkbashisms \
qpdf || exit -1
brew install --cask basictex || exit -1
brew install basictex || exit -1
export PATH="/Library/TeX/texbin:$PATH"
sudo tlmgr --verify-repo=none update --self || exit -1
sudo tlmgr --verify-repo=none install inconsolata helvetic rsfs || exit -1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/r_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ jobs:
env:
CTAN_MIRROR: https://ctan.math.illinois.edu/systems/win32/miktex
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
if: matrix.os == 'macOS-latest' || matrix.os == 'ubuntu-latest'
shell: bash
Expand Down

0 comments on commit de83a23

Please sign in to comment.