-
Notifications
You must be signed in to change notification settings - Fork 2
112 lines (106 loc) · 3.26 KB
/
wheels.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: wheels
on:
release:
types:
- published
jobs:
build_wheels_34:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.7"
- run: |
lsb_release -a
uname -a
- run: python --version
- name: Build wheels for Py3.4
run: |
python -m pip install cibuildwheel==0.12.0
python -m cibuildwheel --output-dir dist
ls -alF dist/
env:
# cibuildwheel version and manylinux images to build Py34 wheels
# alternative image sha256:
# quay.io/pypa/manylinux1_i686@sha256:6616c1a4a93798214e86e964379cd2ee8163fe62af0751da2e8c682809d7c96c
# quay.io/pypa/manylinux1_x86_64@sha256:e90db28d26e5558faa8d58ccd2e67d516ca83f793327df0ba48968a77485eb08
CIBW_BUILD: "cp34-*64"
CIBW_MANYLINUX1_I686_IMAGE: "quay.io/pypa/manylinux1_i686:2020-01-31-d8fa357"
CIBW_MANYLINUX1_X86_64_IMAGE: "quay.io/pypa/manylinux1_x86_64:2020-01-31-d8fa357"
CIBW_PLATFORM: linux
CIBW_TEST_SKIP: "*"
- uses: actions/upload-artifact@v3
with:
path: ./dist/*.whl
build_wheels:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist
env:
CIBW_SKIP: "pp* *-win32 *-manylinux_i686 *-musllinux*"
- name: Build more wheels
uses: pypa/[email protected]
with:
output-dir: dist
env:
CIBW_SKIP: "pp* *-win32 *-manylinux_i686 *-musllinux*"
- name: List wheels
run: ls -alF dist/
if: ${{ !startsWith(matrix.os, 'windows') }}
- uses: actions/upload-artifact@v3
with:
path: ./dist/*.whl
build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build twine
- name: Build sdist
run: python -m build --sdist .
- run: ls -alF dist/
- name: Check long_description
run: python -m twine check dist/*
- uses: actions/upload-artifact@v3
with:
path: ./dist/*.tar.gz
deploy:
needs: [build_wheels_34, build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: List packages
run: ls -alF dist/
- name: Publish packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true