forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.13 KB
/
pip4linux.yml
File metadata and controls
49 lines (41 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Pip4Linux
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel twine
- name: Build linux wheels
env:
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*"
CIBW_SKIP: "*-musllinux_*"
CIBW_ARCHS_LINUX: "x86_64"
run: |
python -m cibuildwheel --output-dir wheelhouse python
- name: Check wheels
run: |
twine check wheelhouse/*
- 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: |
twine upload --verbose --skip-existing wheelhouse/*