File tree Expand file tree Collapse file tree 2 files changed +66
-1
lines changed Expand file tree Collapse file tree 2 files changed +66
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Build aarch64 Linux
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ build_wheels :
7
+ name : Build wheels on ${{ matrix.os }}
8
+ runs-on : ${{ matrix.os }}
9
+ strategy :
10
+ matrix :
11
+ include :
12
+ # - os: ubuntu-latest
13
+ # cibw_archs: "native"
14
+ - os : ubuntu-latest
15
+ cibw_archs : " aarch64"
16
+ # - os: windows-latest
17
+ # cibw_archs: "native ARM64"
18
+ # - os: macos-latest
19
+ # cibw_archs: "native arm64"
20
+
21
+ steps :
22
+ - name : Set up QEMU
23
+ if : matrix.cibw_archs == 'aarch64'
24
+ uses : docker/setup-qemu-action@v2
25
+ with :
26
+ platforms : arm64
27
+ - uses : actions/checkout@v3
28
+
29
+ name : Install Python
30
+ - name : Get submodules
31
+ run : git submodule update --init --recursive
32
+ - name : Build wheels
33
+
34
+ env :
35
+ CIBW_ARCHS : ${{ matrix.cibw_archs }}
36
+ CIBW_SKIP : " pp*"
37
+ - uses : actions/upload-artifact@v3
38
+ with :
39
+ name : wheels
40
+ path : ./wheelhouse/*.whl
41
+
42
+ publish :
43
+ needs : build_wheels
44
+ name : Publish to PyPI
45
+ runs-on : ubuntu-latest
46
+
47
+ steps :
48
+ - name : Set up Python
49
+
50
+ with :
51
+ python-version : ' 3.x'
52
+ - name : Install twine
53
+ run : |
54
+ python -m pip install --upgrade pip
55
+ pip install twine
56
+ - name : Download Artifacts
57
+ uses : actions/download-artifact@v3
58
+ with :
59
+ name : wheels
60
+ path : ./wheelhouse
61
+ - name : Publish
62
+ env :
63
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
64
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
65
+ run : twine upload ./wheelhouse/* --skip-existing
Original file line number Diff line number Diff line change 67
67
env :
68
68
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
69
69
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
70
- run : twine upload ./wheels/*
70
+ run : twine upload ./wheels/* --skip-existing
You can’t perform that action at this time.
0 commit comments