Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
cb89de8b
Unverified
Commit
cb89de8b
authored
Mar 27, 2023
by
James Lamb
Committed by
GitHub
Mar 27, 2023
Browse files
[ci] fix LaTeX tools installation in R jobs (fixes #5802) (#5807)
parent
5f261c42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
.ci/test_r_package.sh
.ci/test_r_package.sh
+2
-1
.github/workflows/r_package.yml
.github/workflows/r_package.yml
+3
-0
No files found.
.ci/test_r_package.sh
View file @
cb89de8b
...
@@ -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
...
...
.github/workflows/r_package.yml
View file @
cb89de8b
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment