File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments