Skip to content

Commit 49c382e

Browse files
nightly build changes except 313
1 parent d133a43 commit 49c382e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ FROM patchelf as python
9090
COPY manywheel/build_scripts /build_scripts
9191
ADD ./common/install_cpython.sh /build_scripts/install_cpython.sh
9292
ENV SSL_CERT_FILE=
93-
RUN bash build_scripts/build.sh && rm -r build_scripts
94-
93+
#RUN bash build_scripts/build.sh && rm -r build_scripts
94+
RUN bash build_scripts/build.sh || (echo "Checksum verification failed!" && exit 1)
9595
FROM base as final
9696
COPY --from=python /opt/python /opt/python
9797
COPY --from=python /opt/_internal /opt/_internal

.ci/docker/manywheel/build_scripts/build.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ ln -s $($PY39_BIN/python -c 'import certifi; print(certifi.where())') \
8686
# Dockerfiles:
8787
export SSL_CERT_FILE=/opt/_internal/certs.pem
8888

89+
######################
90+
# Remove old file if it exists
91+
rm -f curl-7.73.0.tar.bz2
92+
93+
# Download the file
94+
curl -sLO https://curl.askapache.com/download/curl-7.73.0.tar.bz2
95+
96+
# Verify SHA256 Checksum
97+
echo "cf34fe0b07b800f1c01a499a6e8b2af548f6d0e044dca4a29d88a4bee146d131 curl-7.73.0.tar.bz2" | sha256sum -c -
98+
99+
# If checksum fails, exit with an error
100+
if [ $? -ne 0 ]; then
101+
echo "Error: SHA256 checksum mismatch for curl-7.73.0.tar.bz2"
102+
exit 1
103+
fi
104+
#############################
89105
# Install newest curl
90106
build_curl $CURL_ROOT $CURL_HASH
91107
rm -rf /usr/local/include/curl /usr/local/lib/libcurl* /usr/local/lib/pkgconfig/libcurl.pc

0 commit comments

Comments
 (0)