-
-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (49 loc) · 1.7 KB
/
build_linux_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
name: Build and publish Linux wheels
on:
push:
branches:
- pypi-dev
paths:
- '.github/workflows/build_linux_wheels.yml'
- 'python-webrtc/cpp/**'
- 'CMakeLists.txt'
- 'setup.py'
jobs:
build_wheels_for_linux:
name: Build and publish wheels for Linux
runs-on: ubuntu-latest
env:
TRIGGER_WORKFLOW_KEY: "1"
steps:
- name: Clone.
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build wheels.
uses: pypa/[email protected]
env:
MANYLINUX_INSIDE: true
DEPOT_TOOLS_UPDATE: 0
DEPOT_TOOLS_METRICS: 0
CIBW_ENVIRONMENT_PASS_LINUX: MANYLINUX_INSIDE DEPOT_TOOLS_UPDATE DEPOT_TOOLS_METRICS
CIBW_ARCHS: x86_64
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
# extended manylinux image with updated GCC (7.5) and patched CPython
# about gcc: https://github.com/pypa/manylinux/issues/1012
# about patch: https://github.com/pypa/manylinux/issues/1264
CIBW_MANYLINUX_X86_64_IMAGE: ghcr.io/marshalx/wrtc/manylinux_2_24_x86_64:latest
CIBW_BUILD: cp3*-manylinux_*
CIBW_TEST_COMMAND: python -c "import wrtc; wrtc.ping()"
- name: Upload artifacts.
uses: actions/upload-artifact@v2
with:
name: "wrtc for Linux (x86_64)"
path: ./wheelhouse/*.whl
- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/pypi-dev' && github.repository == 'MarshalX/python-webrtc'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload wheelhouse/*