瀏覽代碼

Use Github Actions to build manylinux1 wheels

Just like the Windows wheels, these allow for Linux users to install
mwparserfromhell and use the faster CTokenizer without needing to
have build tools installed.

Under the hood, this uses pypa manylinux1 docker image to build and
tag the wheels, then publishes them to pypi if a new tag was pushed.

Fixes #170.
tags/v0.6
Kunal Mehta 4 年之前
父節點
當前提交
8fdf75ccad
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. +25
    -0
      .github/workflows/build-linux-wheels.yml

+ 25
- 0
.github/workflows/build-linux-wheels.yml 查看文件

@@ -0,0 +1,25 @@
name: Build manylinux1 wheels

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build manylinux1 Python wheels
uses: RalfG/python-wheels-manylinux-build@916aea1f70130a34995d0236ae5c67145bfd2c4f
with:
python-versions: 'cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38'
- name: Move to dist/
run: |
mkdir -p dist
cp -v wheelhouse/*-manylinux1_x86_64.whl dist/
- name: Publish package to PyPi
# Only actually publish if a new tag was pushed
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}


Loading…
取消
儲存