File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ jobs:
24
24
python setup.py develop
25
25
python --version
26
26
pytest
27
-
27
+
28
28
- name : Build wheels for Linux
29
29
if : matrix.os == 'ubuntu-latest'
30
30
run : |
31
- pip install -U wheel setuptools auditwheel patchelf
32
- pip wheel . --verbose -w dist
33
- auditwheel repair dist/document_scanner_sdk*.whl --plat manylinux_2_24_$(uname -m)
34
-
31
+ docker run --rm -v $(pwd):/io quay.io/pypa/manylinux_2_24_x86_64 \
32
+ /bin/bash -c "cd /io && python3 setup.py bdist_wheel -d dist && auditwheel repair dist/*.whl -w /io/wheelhouse"
33
+
35
34
- name : Build wheels for Windows
36
35
if : matrix.os == 'windows-latest'
37
36
run : |
38
37
pip install -U wheel setuptools
39
38
python setup.py bdist_wheel -d wheelhouse
39
+
40
40
- uses : actions/upload-artifact@v2
41
41
with :
42
42
path : wheelhouse/*.whl
@@ -53,14 +53,11 @@ jobs:
53
53
- uses : actions/upload-artifact@v2
54
54
with :
55
55
path : dist/*.tar.gz
56
-
56
+
57
57
upload_pypi :
58
58
needs : [build_wheels, build_sdist]
59
59
runs-on : ubuntu-latest
60
- # upload to PyPI on every tag starting with 'v'
61
60
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
62
- # alternatively, to publish when a GitHub Release is created, use the following rule:
63
- # if: github.event_name == 'release' && github.event.action == 'published'
64
61
steps :
65
62
- uses : actions/download-artifact@v2
66
63
with :
You can’t perform that action at this time.
0 commit comments