Skip to content

Commit 62761cd

Browse files
committed
[cicd] add pip4linux.yml
1 parent 00839eb commit 62761cd

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/pip4linux.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Pip4Linux
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
release:
10+
types:
11+
- published
12+
13+
jobs:
14+
build:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
platform: [ubuntu-latest]
19+
python-version: ["3.8",
20+
"3.9",
21+
"3.10",
22+
"3.11",
23+
"3.12",
24+
"3.13",]
25+
26+
runs-on: ${{ matrix.platform }}
27+
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
submodules: true
32+
33+
- uses: actions/setup-python@v4
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
37+
- name: Update requirements
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install pybind11 setuptools wheel twine
41+
42+
- name: Build and install for mac
43+
run: |
44+
cd python
45+
python setup.py bdist_wheel --plat-name manylinux2014_x86_64
46+
47+
- name: Upload to pypi when release
48+
env:
49+
TWINE_USERNAME: __token__
50+
TWINE_PASSWORD: ${{ secrets.PYPI_PYCGRAPH_TOKEN }}
51+
run: |
52+
cd python
53+
twine check dist/*
54+
twine upload --verbose --skip-existing dist/*

0 commit comments

Comments
 (0)