File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ # .github/workflows/build_and_upload.yml
2
+
3
+ name : Build and Upload to PyPI
4
+
5
+ on :
6
+ push :
7
+ branches : [main]
8
+ pull_request :
9
+ branches : [main]
10
+
11
+ jobs :
12
+ build_wheels :
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ os :
17
+ - ubuntu-22.04
18
+ - ubuntu-20.04
19
+ - ubuntu-18.04
20
+ - macos-12
21
+ - macos-11
22
+ - macos-10.15
23
+ - windows-2022
24
+ - windows-2019
25
+ - windows-2016
26
+ python-version : ["3.7", "3.8", "3.9", "3.10"]
27
+ architecture : [x64, arm64] # Add architectures
28
+
29
+ # Limit arm64 to Ubuntu
30
+ exclude :
31
+ - os : macos-12
32
+ architecture : arm64
33
+ - os : macos-11
34
+ architecture : arm64
35
+ - os : macos-10.15
36
+ architecture : arm64
37
+ - os : windows-2022
38
+ architecture : arm64
39
+ - os : windows-2019
40
+ architecture : arm64
41
+ - os : windows-2016
42
+ architecture : arm64
43
+
44
+ steps :
45
+ - uses : actions/checkout@v2 # Check out the repository code
46
+
47
+ - name : Set up Python
48
+ uses : actions/setup-python@v2
49
+ with :
50
+ python-version : ${{ matrix.python-version }}
51
+
52
+ - name : Install cibuildwheel
53
+ run : |
54
+ pip install cibuildwheel
55
+
56
+ - name : Build wheels with cibuildwheel
57
+ run : |
58
+ cibuildwheel --output-dir dist
59
+
60
+ - name : Upload to PyPI
61
+ uses : pypa/gh-action-pypi-publish@main
62
+ with :
63
+ password : ${{ secrets.pypi_password }}
You can’t perform that action at this time.
0 commit comments