From d1cc8efe0a73fe6ea3a46492c3d9e0e64474c234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 7 May 2022 09:33:02 +0700 Subject: [PATCH] add build --- .github/workflows/.gitkeep | 0 .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) delete mode 100644 .github/workflows/.gitkeep create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/.gitkeep b/.github/workflows/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b81b4b2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: python-Levenshtein 0.12.2 + +defaults: + run: + shell: bash + +on: pull_request + +jobs: + build_wheels: + name: Build wheels on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2019, macos-10.15] + + steps: + - uses: actions/checkout@v2 + + # Used to host cibuildwheel + - uses: actions/setup-python@v2 + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.1.2 + + - name: Fetch source distribution + run: | + curl https://files.pythonhosted.org/packages/2a/dc/97f2b63ef0fa1fd78dcb7195aca577804f6b2b51e712516cc0e902a9a201/python-Levenshtein-0.12.2.tar.gz -o python-Levenshtein-0.12.2.tar.gz + tar -zxf python-Levenshtein-0.12.2.tar.gz + mv python-Levenshtein-0.12.2/* . + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7" + CIBW_BUILD: "cp310-*" + + - name: Checksum + uses: Huy-Ngo/gha-sha@v1.1.0 + with: + glob: 'wheelhouse/*.whl' + - uses: actions/upload-artifact@v2 + with: + path: wheelhouse/*.whl + + - name: Release + uses: softprops/action-gh-release@v1 + with: + name: 'Release: python-Levenshtein 0.12.2' + files: wheelhouse/*.whl + tag_name: python-Levenshtein-0.12.2 +