Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building manylinux wheels on github actions #20

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build-wheels

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-wheels:
timeout-minutes: 60
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@v2

- name: Install bazel
run: |
apt-get update
apt-get install -yq wget gcc g++ python3.7 zlib1g-dev zip libuv1.dev
apt-get install -yq pip
wget "https://github.com/bazelbuild/bazel/releases/download/5.1.0/bazel_5.1.0-linux-x86_64.deb" -O bazel_5.1.0-linux-x86_64.deb
dpkg -i bazel_5.1.0-linux-x86_64.deb

# - name: Install dependencies
# run: |
# python3 -m pip install virtualenv
# python3 -m virtualenv -p python3 py3
# . py3/bin/activate
# which python
# pip install pytest torch
# pip install ray==1.11.0

- name: Build wheels
run: |
bash build_wheels.sh

- name: Archive rayfed-wheel
uses: actions/upload-artifact@v1
with:
name: rayfed_python39_wheel_on_ubuntu
path: dist/
6 changes: 6 additions & 0 deletions build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ PYTHON_BIN_PATH='/opt/python/cp38-cp38/bin/python' /opt/python/cp38-cp38/bin/pyt
auditwheel repair --plat manylinux2014_x86_64 dist/pygloo-0.2.0-cp38-cp38-linux_x86_64.whl
bazel clean --expunge
/opt/python/cp38-cp38/bin/python setup.py clean --all

# Build py38 manylinux wheels
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build py39 manylinux wheels

PYTHON_BIN_PATH='/opt/python/cp39-cp39/bin/python' /opt/python/cp39-cp39/bin/python setup.py bdist_wheel
auditwheel repair --plat manylinux2014_x86_64 dist/pygloo-0.2.0-cp39-cp39-linux_x86_64.whl
bazel clean --expunge
/opt/python/cp39-cp39/bin/python setup.py clean --all
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is python 3.9. how abort python 3.10?

Loading