From 2ce9426631934b55d8767fa7a31c61410f3314a1 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 18 Jul 2024 15:36:02 -0500 Subject: [PATCH] [ci] [R-package] help linker find libstdc++.so.1 in clang18 job (fixes #6553) (#6554) --- .github/workflows/r_package.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/r_package.yml b/.github/workflows/r_package.yml index fd456776766b..d9a18bd1885e 100644 --- a/.github/workflows/r_package.yml +++ b/.github/workflows/r_package.yml @@ -316,6 +316,11 @@ jobs: - name: Install packages and run tests shell: bash run: | + # patch around library-loading issues in clang18 image + # ref: https://github.com/microsoft/LightGBM/issues/6553 + if [[ "${{ matrix.image }}" == "clang18" ]]; then + export LD_LIBRARY_PATH="/usr/lib/llvm-18/lib:${LD_LIBRARY_PATH}" + fi Rscript -e "install.packages(c('R6', 'data.table', 'jsonlite', 'knitr', 'markdown', 'Matrix', 'RhpcBLASctl', 'testthat'), repos = 'https://cran.rstudio.com', Ncpus = parallel::detectCores())" sh build-cran-package.sh if [[ "${{ matrix.image }}" =~ "clang" ]]; then