-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ jobs: | |
compiler: gcc | ||
r_version: 3.6 | ||
build_type: cmake | ||
container: 'ubuntu:20.04' | ||
container: 'ubuntu:18.04' | ||
- os: ubuntu-latest | ||
task: r-package | ||
compiler: gcc | ||
|
@@ -56,7 +56,7 @@ jobs: | |
compiler: clang | ||
r_version: 3.6 | ||
build_type: cmake | ||
container: 'ubuntu:20.04' | ||
container: 'ubuntu:18.04' | ||
- os: ubuntu-latest | ||
task: r-package | ||
compiler: clang | ||
|
@@ -180,6 +180,12 @@ jobs: | |
- name: Install pandoc | ||
uses: r-lib/actions/setup-pandoc@v2 | ||
if: matrix.r_version != '3.6' | ||
# R 3.6 binary isn't easily available on buntu 18.04, | ||
# but setup-pandoc>=2.7.1 is uses a too-new glibc for it. | ||
# ref: https://github.com/microsoft/LightGBM/issues/6298 | ||
- name: Install pandoc | ||
uses: r-lib/actions/[email protected] | ||
if: matrix.r_version == '3.6' | ||
- name: install tinytex | ||
if: startsWith(matrix.os, 'windows') | ||
uses: r-lib/actions/setup-tinytex@v2 | ||
|
@@ -198,6 +204,11 @@ jobs: | |
elif [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then | ||
export OS_NAME="linux" | ||
export IN_UBUNTU_BASE_CONTAINER="true" | ||
# the default version of cmake provided on Ubuntu 18.04 (v3.10.2), is not supported by LightGBM | ||
# see https://github.com/microsoft/LightGBM/issues/5642 | ||
if [[ "${{ matrix.container }}" == "ubuntu:18.04" ]]; then | ||
export INSTALL_CMAKE_FROM_RELEASES="true" | ||
fi | ||
fi | ||
export BUILD_DIRECTORY="$GITHUB_WORKSPACE" | ||
export R_VERSION="${{ matrix.r_version }}" | ||
|