Fix issue 1502 #4946
Workflow file for this run
This file contains 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-node | ||
on: | ||
push: | ||
branches: [v3] | ||
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 | ||
node: 18 | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-22.04-arm | ||
node: 18 | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-24.04 | ||
node: 20 | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-24.04 | ||
node: 22 | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-24.04 | ||
node: 22 | ||
cc: gcc | ||
cxx: g++ | ||
meson_args: '-Db_sanitize=address' | ||
- os: ubuntu-24.04 | ||
node: 22 | ||
cc: clang | ||
cxx: clang++ | ||
meson_args: '-Db_sanitize=undefined' | ||
- os: ubuntu-24.04 | ||
node: 22 | ||
cc: gcc | ||
cxx: g++ | ||
meson_args: '-Db_sanitize=thread' | ||
- os: ubuntu-24.04-arm | ||
node: 20 | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-24.04-arm | ||
node: 22 | ||
cc: gcc | ||
cxx: g++ | ||
- os: ubuntu-24.04-arm | ||
node: 22 | ||
cc: gcc | ||
cxx: g++ | ||
meson_args: '-Db_sanitize=address' | ||
# In Ubuntu 24.04 ARM in Debug build type with ASAN, createWorker() | ||
# takes too long. | ||
# See https://github.com/versatica/mediasoup/pull/1503. | ||
skip-test-in-debug-build-type: true | ||
- os: ubuntu-24.04-arm | ||
node: 22 | ||
cc: clang | ||
cxx: clang++ | ||
meson_args: '-Db_sanitize=undefined' | ||
- os: ubuntu-24.04-arm | ||
node: 22 | ||
cc: gcc | ||
cxx: g++ | ||
meson_args: '-Db_sanitize=thread' | ||
- os: macos-13 | ||
node: 18 | ||
cc: clang | ||
cxx: clang++ | ||
- os: macos-14 | ||
node: 20 | ||
cc: clang | ||
cxx: clang++ | ||
- os: macos-15 | ||
node: 22 | ||
cc: clang | ||
cxx: clang++ | ||
- os: windows-2022 | ||
node: 20 | ||
cc: cl | ||
cxx: cl | ||
- os: windows-2022 | ||
node: 22 | ||
cc: cl | ||
cxx: cl | ||
- os: windows-2025 | ||
node: 22 | ||
cc: cl | ||
cxx: cl | ||
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 }} | ||
MESON_ARGS: ${{ matrix.build.meson_args }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.build.node }} | ||
- name: Configure cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.npm | ||
key: ${{ matrix.build.os }}-node-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ matrix.build.os }}-node- | ||
- name: npm run worker:prebuild-name | ||
run: npm run worker:prebuild-name | ||
- name: npm ci | ||
run: npm ci --foreground-scripts | ||
env: | ||
# Disable leak detection because it's detected by the tool flatc uses | ||
# to build. | ||
ASAN_OPTIONS: 'detect_leaks=0' | ||
- name: npm run lint:node | ||
run: npm run lint:node | ||
- if: ${{ (!matrix.build.skip-test-in-debug-build-type) || (matrix.build-type != "Debug") }} | ||
Check failure on line 147 in .github/workflows/mediasoup-node.yaml
|
||
name: npm run test:node | ||
run: npm run test:node |