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

[R-package] [ci] restore R 3.6 Windows cran CI job (fixes #5036) (#5479)

parent 952458a9
...@@ -101,6 +101,12 @@ jobs: ...@@ -101,6 +101,12 @@ jobs:
############### ###############
# CRAN builds # # CRAN builds #
############### ###############
- os: windows-latest
task: r-package
compiler: MINGW
toolchain: MINGW
r_version: 3.6
build_type: cran
- os: windows-latest - os: windows-latest
task: r-package task: r-package
compiler: MINGW compiler: MINGW
......
...@@ -199,25 +199,33 @@ if ${BUILD_VIGNETTES} ; then ...@@ -199,25 +199,33 @@ if ${BUILD_VIGNETTES} ; then
echo "untarring ${TARBALL_NAME}" echo "untarring ${TARBALL_NAME}"
cd _tmp cd _tmp
tar -xvf "${TARBALL_NAME}" > /dev/null 2>&1 tar -xf "${TARBALL_NAME}" > /dev/null 2>&1
rm -rf "${TARBALL_NAME}" rm -f "${TARBALL_NAME}"
cd ..
echo "done untarring ${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}" echo "re-tarring ${TARBALL_NAME}"
tar \ tar \
-czv \ -cz \
-C ./_tmp \
--exclude=*.a \
--exclude=*.dll \
--exclude=*.o \
--exclude=*.so \
--exclude=*.tar.gz \
--exclude=**/conftest.c \
--exclude=**/conftest.exe \
-f "${TARBALL_NAME}" \ -f "${TARBALL_NAME}" \
lightgbm \ lightgbm \
> /dev/null 2>&1 > /dev/null 2>&1
mv "${TARBALL_NAME}" ../
cd ..
echo "Done creating ${TARBALL_NAME}" echo "Done creating ${TARBALL_NAME}"
rm -rf ./_tmp rm -rf ./_tmp
......
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