diff --git a/.github/workflows/mediasoup-node-debug.yaml b/.github/workflows/mediasoup-node-debug.yaml deleted file mode 100644 index 28c461743a..0000000000 --- a/.github/workflows/mediasoup-node-debug.yaml +++ /dev/null @@ -1,65 +0,0 @@ -name: mediasoup-node-debug - -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: - ci: - - os: ubuntu-20.04 - node: 18 - - os: ubuntu-22.04 - node: 20 - - os: ubuntu-20.04 - node: 18 - arch: arm64 - - os: ubuntu-22.04 - node: 20 - arch: arm64 - - os: macos-12 - node: 18 - - os: macos-14 - node: 20 - - os: windows-2022 - node: 20 - - runs-on: ${{ matrix.ci.os }} - - env: - MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' - MEDIASOUP_LOCAL_DEV: 'true' - MEDIASOUP_BUILDTYPE: 'Debug' - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Node.js - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.ci.node }} - - - name: Configure cache - uses: actions/cache@v3 - with: - path: | - ~/.npm - key: ${{ matrix.ci.os }}-node-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ matrix.ci.os }}-node- - - - name: npm ci - run: npm ci --foreground-scripts - - - name: npm run lint:node - run: npm run lint:node - - - name: npm run test:node - run: npm run test:node diff --git a/.github/workflows/mediasoup-node.yaml b/.github/workflows/mediasoup-node.yaml index 8c4c792bd0..a8436e5e0f 100644 --- a/.github/workflows/mediasoup-node.yaml +++ b/.github/workflows/mediasoup-node.yaml @@ -29,13 +29,16 @@ jobs: node: 20 - os: windows-2022 node: 20 + build-type: + - Release + - Debug runs-on: ${{ matrix.ci.os }} env: MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' MEDIASOUP_LOCAL_DEV: 'true' - MEDIASOUP_BUILDTYPE: 'Release' + MEDIASOUP_BUILDTYPE: ${{ matrix.build-type }} steps: - name: Checkout diff --git a/.github/workflows/mediasoup-worker-fuzzer-debug.yaml b/.github/workflows/mediasoup-worker-fuzzer-debug.yaml deleted file mode 100644 index 2a6547106e..0000000000 --- a/.github/workflows/mediasoup-worker-fuzzer-debug.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: mediasoup-worker-fuzzer-debug - -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++ - - os: ubuntu-22.04 - cc: clang - cxx: clang++ - arch: arm64 - - 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: 'Debug' - - steps: - - name: Checkout - uses: actions/checkout@v4 - - # We need to install pip invoke manually. - - name: pip3 install invoke - run: pip3 install invoke - if: runner.os != 'macOS' - - # In macOS we need to specify this option. - - name: pip3 install --break-system-packages invoke - run: pip3 install --break-system-packages invoke - if: runner.os == 'macOS' - - # 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 diff --git a/.github/workflows/mediasoup-worker-fuzzer.yaml b/.github/workflows/mediasoup-worker-fuzzer.yaml index e8123119f1..97b2b0cfb5 100644 --- a/.github/workflows/mediasoup-worker-fuzzer.yaml +++ b/.github/workflows/mediasoup-worker-fuzzer.yaml @@ -20,6 +20,9 @@ jobs: cc: clang cxx: clang++ arch: arm64 + build-type: + - Release + - Debug runs-on: ${{ matrix.build.os }} @@ -28,7 +31,7 @@ jobs: CXX: ${{ matrix.build.cxx }} MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' MEDIASOUP_LOCAL_DEV: 'true' - MEDIASOUP_BUILDTYPE: 'Release' + MEDIASOUP_BUILDTYPE: ${{ matrix.build-type }} steps: - name: Checkout