-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (37 loc) · 1.12 KB
/
building-wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: build-wheels
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-wheels:
timeout-minutes: 60
runs-on: ubuntu-22.04
container: docker.io/library/ubuntu:22.04
steps:
- uses: actions/checkout@v2
- name: Install bazel
run: |
apt-get update
apt-get install -yq wget gcc g++ python3.10 zlib1g-dev zip libuv1.dev
apt-get install -yq pip
- name: Install dependencies
run: |
python3 -m pip install virtualenv
python3 -m virtualenv -p python3 py3
. py3/bin/activate
which python
# Revert setuptools for compatibility with ray dashboard.
pip install setuptools==69.5.1
pip install pytest torch cloudpickle cryptography
pip install ray==2.0.0
- name: Install and export wheels
run: |
. py3/bin/activate
python3 setup.py sdist bdist_wheel -d dist
- name: Archive rayfed-wheel
uses: actions/upload-artifact@v1
with:
name: rayfed_python39_wheel_on_ubuntu
path: dist/