Skip to content

Commit

Permalink
Build and install aws-sdk-cpp in wheel images (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA authored Aug 15, 2024
1 parent 358b5d1 commit 3b388fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 22 additions & 2 deletions ci-wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ case "${LINUX_VER}" in
jq wget gcc zlib1g-dev libbz2-dev \
libssl-dev libreadline-dev libsqlite3-dev libffi-dev curl git libncurses5-dev \
libnuma-dev openssh-client libcudnn8-dev zip libopenblas-dev liblapack-dev \
protobuf-compiler autoconf automake libtool cmake yasm libopenslide-dev
protobuf-compiler autoconf automake libtool cmake yasm libopenslide-dev libcurl4-openssl-dev
add-apt-repository ppa:git-core/ppa
add-apt-repository ppa:ubuntu-toolchain-r/test
apt update -y
Expand Down Expand Up @@ -83,7 +83,7 @@ case "${LINUX_VER}" in
which wget gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite \
sqlite-devel xz xz-devel libffi-devel curl git ncurses-devel numactl \
numactl-devel openssh-clients libcudnn8-devel zip jq openslide-devel \
protobuf-compiler autoconf automake libtool dnf-plugins-core cmake
protobuf-compiler autoconf automake libtool dnf-plugins-core cmake libcurl-devel
dnf config-manager --set-enabled powertools
dnf install -y blas-devel lapack-devel
dnf -y install gcc-toolset-11-gcc gcc-toolset-11-gcc-c++
Expand Down Expand Up @@ -119,6 +119,26 @@ mv gh_*/bin/gh /usr/local/bin
rm -rf gh_*
EOF

# Download, build, and install aws-sdk-cpp
ARG AWS_SDK_CPP_VER=notset
RUN <<EOF
pushd tmp
git clone --recurse-submodules -b ${AWS_SDK_CPP_VER} https://github.com/aws/aws-sdk-cpp.git
cd aws-sdk-cpp
cmake \
-S . \
-B build \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_ONLY=s3 \
-DBUILD_SHARED_LIBS=OFF \
-DENABLE_TESTING=OFF \
-DENABLE_UNITY_BUILD=ON
cmake --build build/
cmake --install build/
popd
EOF

# Install sccache
ARG SCCACHE_VER=notset

Expand Down
2 changes: 2 additions & 0 deletions versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ CODECOV_VER: 0.7.3
YQ_VER: 4.44.2
# renovate: datasource=docker depName=amazon/aws-cli versioning=docker
AWS_CLI_VER: 2.17.20
# renovate: datasource=github-releases depName=aws/aws-sdk-cpp
AWS_SDK_CPP_VER: 1.11.384

0 comments on commit 3b388fd

Please sign in to comment.