Skip to content

Commit 7a37f6b

Browse files
authored
Add wheel builds (#358)
1 parent 77f9d61 commit 7a37f6b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Wheels
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
11+
build-wheel:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
py_ver: [ "3.7", "3.8", "3.9" ]
16+
os: ["ubuntu-18.04", "macos-latest"]
17+
steps:
18+
- name: Setup Python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.py_ver }}
22+
architecture: x64
23+
- name: Checkout functorch
24+
uses: actions/checkout@v2
25+
- name: Install PyTorch Nightly
26+
run: |
27+
python3 -mpip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
28+
- name: Build wheel
29+
run: |
30+
python3 -mpip install wheel
31+
python3 setup.py bdist_wheel
32+
- name: Upload wheel as GHA artifact
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: functorch-py${{ matrix.py_ver }}.whl
36+
path: dist/*.whl

0 commit comments

Comments
 (0)