-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
52 lines (42 loc) · 1.42 KB
/
mediasoup-worker-fuzzer.yaml
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
name: mediasoup-worker-fuzzer
on: [pull_request, 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-22.04
cc: clang
cxx: clang++
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: runner.os != 'macOS'
name: pip3 install invoke
run: pip3 install invoke
# In macOS we need to specify this option.
- if: runner.os == 'macOS'
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