Worker: New Consumer class handling all possible producer stream modes. #1727
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: mediasoup-worker-fuzzer | |
| on: | |
| push: | |
| branches: [v3] | |
| paths: | |
| - 'worker/**' | |
| - '.github/workflows/mediasoup-worker-fuzzer.yaml' | |
| pull_request: | |
| paths: | |
| - 'worker/**' | |
| - '.github/workflows/mediasoup-worker-fuzzer.yaml' | |
| workflow_dispatch: | |
| concurrency: | |
| # Cancel a currently running workflow from the same PR, branch or tag when a | |
| # new workflow is triggered. | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| strategy: | |
| matrix: | |
| build: | |
| - os: ubuntu-24.04 | |
| cc: clang | |
| cxx: clang++ | |
| pip-break-system-packages: true | |
| - os: ubuntu-24.04-arm | |
| cc: clang | |
| cxx: clang++ | |
| pip-break-system-packages: true | |
| build-type: | |
| - Release | |
| - Debug | |
| runs-on: ${{ matrix.build.os }} | |
| env: | |
| CC: ${{ matrix.build.cc }} | |
| CXX: ${{ matrix.build.cxx }} | |
| MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' | |
| MEDIASOUP_LOCAL_DEV: 'true' | |
| MEDIASOUP_BUILDTYPE: ${{ matrix.build-type }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # We need to install pip invoke manually. | |
| - if: ${{ !matrix.build.pip-break-system-packages }} | |
| name: pip3 install invoke | |
| run: pip3 install invoke | |
| # In modern OSs we need to run pip with this option. | |
| - if: ${{ matrix.build.pip-break-system-packages }} | |
| name: pip3 install --break-system-packages invoke | |
| run: pip3 install --break-system-packages invoke | |
| # Build the mediasoup-worker-fuzzer binary (which uses libFuzzer). | |
| - name: invoke -r worker fuzzer | |
| run: invoke -r worker fuzzer | |
| # Run mediasoup-worker-fuzzer for 5 minutes. | |
| - name: run-fuzzer.sh 300 | |
| run: cd worker && ./scripts/run-fuzzer.sh 300 |