Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/pip4linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Pip4Linux

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
release:
types:
- published

jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
python-version: ["3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Update requirements
run: |
python -m pip install --upgrade pip
pip install pybind11 setuptools wheel twine

- name: Build and install for mac
run: |
cd python
python setup.py bdist_wheel --plat-name manylinux2014_x86_64

- name: Upload to pypi when release
if: github.event_name == 'release' && github.event.action == 'published'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PYCGRAPH_TOKEN }}
run: |
cd python
twine check dist/*
twine upload --verbose --skip-existing dist/*
2 changes: 1 addition & 1 deletion COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
---

### Python 版本
* MacOS 和 Windows 用户可以通过命令安装(推荐)
* 用户可以通过命令安装(推荐)
```shell
$ pip3 install PyCGraph # 直接通过 pip3 安装
$ python3 -c "import PyCGraph" # 验证 PyCGraph 成功安装
Expand Down
Loading