Skip to content

Commit

Permalink
[ci] switch to manylinux_2_28 for Linux artifacts (fixes #5514)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Nov 9, 2022
1 parent f1d3181 commit 758b9ae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
28 changes: 19 additions & 9 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,30 @@ else # Linux
sudo update-locale
fi
if [[ $TASK == "mpi" ]]; then
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
libopenmpi-dev \
openmpi-bin
if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
libopenmpi-dev \
openmpi-bin
else # in manylinux image
yum update -y
yum install -y \
openmpi-devel
fi
fi
if [[ $TASK == "gpu" ]]; then
sudo add-apt-repository ppa:mhier/libboost-latest -y
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
libboost1.74-dev \
ocl-icd-opencl-dev
if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then
sudo add-apt-repository ppa:mhier/libboost-latest -y
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
libboost1.74-dev \
ocl-icd-opencl-dev \
pocl-opencl-icd
else # in manylinux image
yum update -y
yum install -y \
boost-devel \
ocl-icd-devel
fi
fi
if [[ $TASK == "cuda" || $TASK == "cuda_exp" ]]; then
Expand Down
6 changes: 3 additions & 3 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
resources:
containers:
- container: ubuntu1404
image: lightgbm/vsts-agent:ubuntu-14.04
- container: linux-artifact-builder
image: lightgbm/vsts-agent:manylinux_2_28_x86_64-dev2
- container: ubuntu-latest
image: 'ubuntu:20.04'
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
Expand All @@ -35,7 +35,7 @@ jobs:
OS_NAME: 'linux'
PRODUCES_ARTIFACTS: 'true'
pool: sh-ubuntu
container: ubuntu1404
container: linux-artifact-builder
strategy:
matrix:
regular:
Expand Down

0 comments on commit 758b9ae

Please sign in to comment.