Skip to content

Commit

Permalink
[ci] get clang-15 from bookworm repository (fixes #5688) (#5689)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jan 31, 2023
1 parent ad68f13 commit d7ea269
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/r_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ jobs:
#
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
#
add-apt-repository "deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-15 main"
add-apt-repository "deb http://apt.llvm.org/unstable/ llvm-toolchain main"
apt-get install -y --no-install-recommends \
clang-15 \
clangd-15 \
Expand All @@ -335,7 +335,13 @@ jobs:
Rscript -e "install.packages(c('R6', 'data.table', 'jsonlite', 'knitr', 'Matrix', 'RhpcBLASctl', 'rmarkdown', 'testthat'), repos = 'https://cran.rstudio.com', Ncpus = parallel::detectCores())"
sh build-cran-package.sh
R CMD check --as-cran --run-donttest lightgbm_*.tar.gz || exit -1
if grep -q -E "NOTE|WARNING|ERROR" lightgbm.Rcheck/00check.log; then
# ignoring the following NOTE:
#
# * checking C++ specification ... NOTE
# Specified C++11: please update to current default of C++17
#
# until it's resolved (see https://github.com/microsoft/LightGBM/pull/5690)
if $(grep -v "C++ specification" "$LOG_FILE_NAME" | grep -v "1 NOTE" | grep -E "NOTE|WARNING|ERROR"); then
echo "NOTEs, WARNINGs, or ERRORs have been found by R CMD check"
exit -1
fi
Expand Down

0 comments on commit d7ea269

Please sign in to comment.