update action workflow to fix package not found issue in linux

This commit is contained in:
Jinyu Wang 2023-03-13 11:54:01 +00:00
Родитель dc1b016468
Коммит 37b4678239
2 изменённых файлов: 5 добавлений и 5 удалений

8
.github/workflows/build_wheel.yml поставляемый
Просмотреть файл

@ -42,7 +42,7 @@ jobs:
python setup.py bdist_wheel
- name: Build manylinux wheel
if: runner.os == 'Linux' && matrix.python-version == '3.6'
if: runner.os == 'Linux' && matrix.python-version == '3.7'
uses: RalfG/python-wheels-manylinux-build@v0.3.1-manylinux2010_x86_64
with:
python-versions: 'cp36-cp36m cp37-cp37m'
@ -51,13 +51,13 @@ jobs:
pre-build-command: 'export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH'
- name: Move valid packages to dist folder for manylinux
if: runner.os == 'Linux' && matrix.python-version == '3.6'
if: runner.os == 'Linux' && matrix.python-version == '3.7'
run: |
mkdir -p dist
cp wheelhouse/pymaro-*-manylinux*.whl dist
- name: Build source package on linux
if: runner.os == 'Linux' && matrix.python-version == '3.6'
if: runner.os == 'Linux' && matrix.python-version == '3.7'
run: |
python setup.py sdist
@ -73,6 +73,6 @@ jobs:
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
if: (runner.os == 'Linux' && matrix.python-version == '3.6') || (runner.os == 'Windows' || runner.os == 'macOS')
if: (runner.os == 'Linux' && matrix.python-version == '3.7') || (runner.os == 'Windows' || runner.os == 'macOS')
run: |
twine upload --verbose dist/*.whl

Просмотреть файл

@ -2,6 +2,6 @@
# Licensed under the MIT license.
__version__ = "0.3.1a1"
__version__ = "0.3.1a2"
__data_version__ = "0.2"