From d8145ef9de69587c76c32d90119272a198be8738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Tue, 20 Feb 2024 10:55:34 +0100 Subject: [PATCH] CI: add mediasoup-worker-fuzzer.yaml ### Details - Goal is to build `mediasoup-worker-fuzzer` binary in Linux + clang. - This PR does **NOT** run `mediasoup-worker-fuzzer` since it would run forever and we need some code to make it run for some time and terminate it. This maybe a future work. --- .../workflows/mediasoup-worker-fuzzer.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/mediasoup-worker-fuzzer.yaml diff --git a/.github/workflows/mediasoup-worker-fuzzer.yaml b/.github/workflows/mediasoup-worker-fuzzer.yaml new file mode 100644 index 0000000000..5f4e5d953e --- /dev/null +++ b/.github/workflows/mediasoup-worker-fuzzer.yaml @@ -0,0 +1,40 @@ +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++ + + runs-on: ${{ matrix.build.os }} + + env: + CC: ${{ matrix.build.cc }} + CXX: ${{ matrix.build.cxx }} + MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' + MEDIASOUP_LOCAL_DEV: 'true' + + steps: + - name: Checkout + uses: actions/checkout@v4 + + # We need to install pip invoke manually. + - name: pip3 install invoke + run: pip3 install invoke + + # Build the mediasoup-worker-fuzzer binary (which uses libFuzzer). + - name: invoke -r worker fuzzer + run: invoke -r worker fuzzer + + # We don't run mediasoup-worker-fuzzer (maybe in the future).