Skip to content

Commit

Permalink
[ci] [R-package] help linker find libstdc++.so.1 in clang18 job (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jul 18, 2024
1 parent f8ec57b commit 2ce9426
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/r_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ce9426

Please sign in to comment.