Skip to content

Commit

Permalink
Add aarch64 supports (#36)
Browse files Browse the repository at this point in the history
* move DLL to different fielders by arch and os

* update cl for test in aarch64

* setup python on aarch64 test action

* update setup.py to make wheel separated by abi and os for reducing size of package

* bump version to 0.9.7

* update lib from NLPIR repo NLPIR-team/NLPIR@7b1a8cf NLPIR-team/NLPIR@ff62682 NLPIR-team/NLPIR@57500e8
  • Loading branch information
yangyaofei authored Jul 5, 2021
1 parent a66901a commit 3e69736
Show file tree
Hide file tree
Showing 77 changed files with 111 additions and 26 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/linux-aarch64-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Linux-aarch64-test

on: [ push, pull_request , release ]

jobs:
aarch64_job:
runs-on: ubuntu-latest
name: test on aarch64
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: uraimo/[email protected]
name: Run test
with:
arch: aarch64
distro: ubuntu20.04
# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y python3 python3-pip
# Set an output parameter `uname` for use in subsequent steps
run: |
uname -a
apt-get install
python3 -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pytest --dist loadfile -n 10
File renamed without changes.
7 changes: 6 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python setup.py clean --all bdist_wheel --plat-name any
python setup.py clean --all bdist_wheel --plat-name manylinux2014_x86_64
python setup.py clean --all bdist_wheel --plat-name manylinux2014_aarch64
python setup.py clean --all bdist_wheel --plat-name win_amd64
python setup.py clean --all bdist_wheel --plat-name macosx_10_9_x86_64
python setup.py clean --all bdist_wheel --plat-name macosx_11_0_x86_64
twine upload dist/*.whl
File renamed without changes.
2 changes: 1 addition & 1 deletion nlpir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import functools
from .exception import NLPIRException

__version__ = "0.9.6"
__version__ = "0.9.7"
PACKAGE_DIR = os.path.abspath(os.path.dirname(__file__))
logger = logging.getLogger("nlpir")

Expand Down
Loading

0 comments on commit 3e69736

Please sign in to comment.