forked from dmlc/xgboost
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Set up pipeline to build manylinux2014 wheels
- Loading branch information
Showing
5 changed files
with
94 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source tests/buildkite/conftest.sh | ||
|
||
WHEEL_TAG=manylinux2014_aarch64 | ||
command_wrapper="tests/ci_build/ci_build.sh manylinux2014_aarch64" | ||
|
||
echo "--- Build binary wheel for ${WHEEL_TAG}" | ||
$command_wrapper bash -c \ | ||
"cd python-package && pip wheel --no-deps -vvv . --wheel-dir dist/" | ||
$command_wrapper auditwheel repair --plat ${WHEEL_TAG} python-package/dist/*.whl | ||
$command_wrapper python tests/ci_build/rename_whl.py \ | ||
--wheel-path wheelhouse/*.whl \ | ||
--commit-hash ${BUILDKITE_COMMIT} \ | ||
--platform-tag ${WHEEL_TAG} | ||
mv -v wheelhouse/*.whl python-package/dist/ | ||
|
||
echo "--- Upload Python wheel" | ||
buildkite-agent artifact upload python-package/dist/*.whl | ||
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] | ||
then | ||
aws s3 cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \ | ||
--acl public-read --no-progress | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
source tests/buildkite/conftest.sh | ||
|
||
WHEEL_TAG=manylinux2014_x86_64 | ||
command_wrapper="tests/ci_build/ci_build.sh manylinux2014_x86_64" | ||
|
||
echo "--- Build binary wheel for ${WHEEL_TAG}" | ||
$command_wrapper bash -c \ | ||
"cd python-package && pip wheel --no-deps -vvv . --wheel-dir dist/" | ||
$command_wrapper auditwheel repair --plat ${WHEEL_TAG} python-package/dist/*.whl | ||
$command_wrapper python tests/ci_build/rename_whl.py \ | ||
--wheel-path wheelhouse/*.whl \ | ||
--commit-hash ${BUILDKITE_COMMIT} \ | ||
--platform-tag ${WHEEL_TAG} | ||
mv -v wheelhouse/*.whl python-package/dist/ | ||
|
||
echo "--- Upload Python wheel" | ||
buildkite-agent artifact upload python-package/dist/*.whl | ||
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]] | ||
then | ||
aws s3 cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \ | ||
--acl public-read --no-progress | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM quay.io/pypa/manylinux2014_aarch64 | ||
|
||
# Install lightweight sudo (not bound to TTY) | ||
ENV GOSU_VERSION 1.10 | ||
RUN set -ex; \ | ||
curl -o /usr/local/bin/gosu -L "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" && \ | ||
chmod +x /usr/local/bin/gosu && \ | ||
gosu nobody true | ||
|
||
# Default entry-point to use if running locally | ||
# It will preserve attributes of created files | ||
COPY entrypoint.sh /scripts/ | ||
|
||
WORKDIR /workspace | ||
ENTRYPOINT ["/scripts/entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM quay.io/pypa/manylinux2014_x86_64 | ||
|
||
# Install lightweight sudo (not bound to TTY) | ||
ENV GOSU_VERSION 1.10 | ||
RUN set -ex; \ | ||
curl -o /usr/local/bin/gosu -L "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" && \ | ||
chmod +x /usr/local/bin/gosu && \ | ||
gosu nobody true | ||
|
||
# Default entry-point to use if running locally | ||
# It will preserve attributes of created files | ||
COPY entrypoint.sh /scripts/ | ||
|
||
WORKDIR /workspace | ||
ENTRYPOINT ["/scripts/entrypoint.sh"] |