From a43cb3a1fd5b97367180dc4c713325845e3fa7d9 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sun, 1 Dec 2024 23:01:24 -0600 Subject: [PATCH] try pre-installing to speed this up --- .ci/run-revdep-checks.sh | 5 ----- .github/workflows/r_revdepchecks.yml | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.ci/run-revdep-checks.sh b/.ci/run-revdep-checks.sh index fd382441b823..80616c8d9246 100755 --- a/.ci/run-revdep-checks.sh +++ b/.ci/run-revdep-checks.sh @@ -8,9 +8,4 @@ mkdir -p "${CHECKS_OUTPUT_DIR}" sh build-cran-package.sh --no-build-vignettes mv ./lightgbm_*.tar.gz "${CHECKS_OUTPUT_DIR}/" -# pre-install all of the dependencies... tools::check_packages_in_dir() -# is hard-coded to compile them all from source -# (https://github.com/wch/r-source/blob/594b842678e932088b16ec0cd3c39714a141eed9/src/library/tools/R/checktools.R#L295) -Rscript ./.ci/download-r-revdeps.R - Rscript ./.ci/run-r-revdepchecks.R "${CHECKS_OUTPUT_DIR}" diff --git a/.github/workflows/r_revdepchecks.yml b/.github/workflows/r_revdepchecks.yml index ad96cf58261b..1edb4965735c 100644 --- a/.github/workflows/r_revdepchecks.yml +++ b/.github/workflows/r_revdepchecks.yml @@ -57,8 +57,11 @@ jobs: Rscript -e "install.packages(c('R6', 'data.table', 'jsonlite', 'knitr', 'markdown', 'Matrix', 'RhpcBLASctl'), repos = 'https://cran.r-project.org', Ncpus = parallel::detectCores(), type = 'binary')" sh ./build-cran-package.sh - name: pre-install binary packages + # pre-install all of the dependencies... tools::check_packages_in_dir() + # is hard-coded to compile them all from source + # (https://github.com/wch/r-source/blob/594b842678e932088b16ec0cd3c39714a141eed9/src/library/tools/R/checktools.R#L295) run: | - Rscript ./.ci/download-r-revdeps.R + Rscript --vanilla ./.ci/download-r-revdeps.R - name: run revdepchecks run: | bash ./.ci/run-revdep-checks.sh