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
8b105ceb
"src/vscode:/vscode.git/clone" did not exist on "b3e99b27a04b7e4ff6ab48bd86c613a913499b8d"
Unverified
Commit
8b105ceb
authored
Sep 11, 2022
by
James Lamb
Committed by
GitHub
Sep 11, 2022
Browse files
[R-package] [ci] restore R 3.6 Windows cran CI job (fixes #5036) (#5479)
parent
952458a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
18 deletions
+32
-18
.github/workflows/r_package.yml
.github/workflows/r_package.yml
+6
-0
build-cran-package.sh
build-cran-package.sh
+26
-18
No files found.
.github/workflows/r_package.yml
View file @
8b105ceb
...
...
@@ -101,6 +101,12 @@ jobs:
###############
# CRAN builds #
###############
-
os
:
windows-latest
task
:
r-package
compiler
:
MINGW
toolchain
:
MINGW
r_version
:
3.6
build_type
:
cran
-
os
:
windows-latest
task
:
r-package
compiler
:
MINGW
...
...
build-cran-package.sh
View file @
8b105ceb
...
...
@@ -199,25 +199,33 @@ if ${BUILD_VIGNETTES} ; then
echo
"untarring
${
TARBALL_NAME
}
"
cd
_tmp
tar
-xvf
"
${
TARBALL_NAME
}
"
>
/dev/null 2>&1
rm
-rf
"
${
TARBALL_NAME
}
"
tar
-xf
"
${
TARBALL_NAME
}
"
>
/dev/null 2>&1
rm
-f
"
${
TARBALL_NAME
}
"
echo
"done untarring
${
TARBALL_NAME
}
"
# Object files are left behind from compiling the library to generate vignettes.
# Approaches like using tar --exclude=*.so to exclude them are not portable
# (for example, don't work with some versions of tar on Windows).
#
# Removing them manually here removes the need to use tar --exclude.
#
# For background, see https://github.com/microsoft/LightGBM/pull/3946#pullrequestreview-799415812.
rm
-f
./lightgbm/src/
*
.o
rm
-f
./lightgbm/src/boosting/
*
.o
rm
-f
./lightgbm/src/io/
*
.o
rm
-f
./lightgbm/src/metric/
*
.o
rm
-f
./lightgbm/src/network/
*
.o
rm
-f
./lightgbm/src/objective/
*
.o
rm
-f
./lightgbm/src/treelearner/
*
.o
echo
"re-tarring
${
TARBALL_NAME
}
"
tar
\
-cz
\
-f
"
${
TARBALL_NAME
}
"
\
lightgbm
\
>
/dev/null 2>&1
mv
"
${
TARBALL_NAME
}
"
../
cd
..
echo
"done untarring
${
TARBALL_NAME
}
"
echo
"re-tarring
${
TARBALL_NAME
}
"
tar
\
-czv
\
-C
./_tmp
\
--exclude
=
*
.a
\
--exclude
=
*
.dll
\
--exclude
=
*
.o
\
--exclude
=
*
.so
\
--exclude
=
*
.tar.gz
\
--exclude
=
**
/conftest.c
\
--exclude
=
**
/conftest.exe
\
-f
"
${
TARBALL_NAME
}
"
\
lightgbm
\
>
/dev/null 2>&1
echo
"Done creating
${
TARBALL_NAME
}
"
rm
-rf
./_tmp
...
...
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