Unverified Commit 2ce94266 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] [R-package] help linker find libstdc++.so.1 in clang18 job (fixes #6553) (#6554)

parent f8ec57b8
...@@ -316,6 +316,11 @@ jobs: ...@@ -316,6 +316,11 @@ jobs:
- name: Install packages and run tests - name: Install packages and run tests
shell: bash shell: bash
run: | 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())" 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 sh build-cran-package.sh
if [[ "${{ matrix.image }}" =~ "clang" ]]; then if [[ "${{ matrix.image }}" =~ "clang" ]]; then
......
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