8000 0.0.5 dev (2) by MarshalX · Pull Request #8 · MarshalX/python-webrtc · GitHub
[go: up one dir, main page]

Skip to content

0.0.5 dev (2) #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 9, 2022
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
13 changes: 8 additions & 5 deletions .github/workflows/build_linux_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build and publish Linux wheels

on:
push:
branches:
Expand All @@ -8,6 +9,7 @@ on:
- 'python-webrtc/cpp/**'
- 'CMakeLists.txt'
- 'setup.py'

jobs:
build_wheels_for_linux:
name: Build and publish wheels for Linux
Expand Down Expand Up @@ -41,8 +43,9 @@ jobs:

- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/pypi-dev' && github.repository == 'MarshalX/python-webrtc'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ./wheelhouse/
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload wheelhouse/*
13 changes: 8 additions & 5 deletions .github/workflows/build_macos_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build and publish macOS wheels

on:
push:
branches:
Expand All @@ -8,6 +9,7 @@ on:
- 'python-webrtc/cpp/**'
- 'CMakeLists.txt'
- 'setup.py'

jobs:
build_wheels_for_macos:
name: Build and publish wheels for macOS
Expand Down Expand Up @@ -61,8 +63,9 @@ jobs:

- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/pypi-dev' && github.repository == 'MarshalX/python-webrtc'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ./wheelhouse/
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload wheelhouse/*
2 changes: 2 additions & 0 deletions .github/workflows/build_manylinux.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Build and publish manylinux with updated GCC

on:
push:
branches:
- main
paths:
- '.github/workflows/build_manylinux.yml'
- 'build/Dockerfile'

jobs:
build_manylinux:
name: Build and publish manylinux images
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/build_windows_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build and publish Windows wheels

on:
push:
branches:
Expand All @@ -8,6 +9,7 @@ on:
- 'python-webrtc/cpp/**'
- 'CMakeLists.txt'
- 'setup.py'

jobs:
# Disk C is used to bypass limitation of default disk space
# ref: https://github.com/actions/virtual-environments/issues/1341
Expand Down Expand Up @@ -87,8 +89,9 @@ jobs:

- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/pypi-dev' && github.repository == 'MarshalX/python-webrtc'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: "C:/src/wheelhouse/"
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload C:/src/wheelhouse/*
49 changes: 49 additions & 0 deletions .github/workflows/codeql_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CodeQL

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '0 8 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- if: matrix.language == 'cpp'
name: Build
run: |
sudo apt install -y python3.9-dev
python setup.py build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
12 changes: 8 additions & 4 deletions .github/workflows/create_sdist.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Create and publish Source Distribution

on:
push:
branches:
Expand All @@ -9,6 +10,7 @@ on:
- 'python-webrtc/cpp/**'
- 'CMakeLists.txt'
- 'setup.py'

jobs:
create_sdist:
name: Create and publish Source Distribution
Expand Down Expand Up @@ -36,7 +38,9 @@ jobs:

- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/pypi-dev' && github.repository == 'MarshalX/python-webrtc'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload dist/*
0