Unverified 提交 1c0121b2 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo 提交者: GitHub

Update Meson to 1.5.0 (#1424)

上级 24dc5723
...@@ -11,6 +11,7 @@ concurrency: ...@@ -11,6 +11,7 @@ concurrency:
jobs: jobs:
ci: ci:
strategy: strategy:
# Here we want to see all errors, not just the first one.
fail-fast: false fail-fast: false
matrix: matrix:
build: build:
...@@ -48,7 +49,7 @@ jobs: ...@@ -48,7 +49,7 @@ jobs:
CC: ${{ matrix.build.cc }} CC: ${{ matrix.build.cc }}
CXX: ${{ matrix.build.cxx }} CXX: ${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true' MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD: 'true'
MEDIASOUP_LOCAL_DEV: 'true' MEDIASOUP_LOCAL_DEV: 'false'
MEDIASOUP_BUILDTYPE: ${{ matrix.build-type }} MEDIASOUP_BUILDTYPE: ${{ matrix.build-type }}
steps: steps:
...@@ -98,11 +99,23 @@ jobs: ...@@ -98,11 +99,23 @@ jobs:
# TODO: Maybe fix this one day. # TODO: Maybe fix this one day.
if: runner.os != 'Windows' if: runner.os != 'Windows'
# Let's clean everything before rebuilding worker tests with ASAN.
- name: invoke -r worker clean-all
run: invoke -r worker clean-all
# Address Sanitizer only works on Linux.
if: runner.os == 'Linux'
- name: invoke -r worker test-asan-address - name: invoke -r worker test-asan-address
run: invoke -r worker test-asan-address run: invoke -r worker test-asan-address
# Address Sanitizer only works on Linux. # Address Sanitizer only works on Linux.
if: runner.os == 'Linux' if: runner.os == 'Linux'
# Let's clean everything before rebuilding worker tests with ASAN.
# - name: invoke -r worker clean-all
# run: invoke -r worker clean-all
# # Address Sanitizer only works on Linux.
# if: runner.os == 'Linux'
# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417 # TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# is fixed. # is fixed.
# - name: invoke -r worker test-asan-undefined # - name: invoke -r worker test-asan-undefined
...@@ -110,6 +123,12 @@ jobs: ...@@ -110,6 +123,12 @@ jobs:
# # Address Sanitizer only works on Linux. # # Address Sanitizer only works on Linux.
# if: runner.os == 'Linux' # if: runner.os == 'Linux'
# Let's clean everything before rebuilding worker tests with ASAN.
# - name: invoke -r worker clean-all
# run: invoke -r worker clean-all
# # Address Sanitizer only works on Linux.
# if: runner.os == 'Linux'
# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417 # TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# is fixed. # is fixed.
# - name: invoke -r worker test-asan-thread # - name: invoke -r worker test-asan-thread
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
### NEXT ### NEXT
- Worker: Test, fix buffer overflow ([PR #1419](https://github.com/versatica/mediasoup/pull/1419)). - Worker: Test, fix buffer overflow ([PR #1419](https://github.com/versatica/mediasoup/pull/1419)).
- Bump up Meson from 1.3.0 to 1.5.0 ([PR #1424](https://github.com/versatica/mediasoup/pull/1424)).
### 3.14.8 ### 3.14.8
...@@ -434,7 +435,7 @@ Migrate `npm-scripts.js` to `npm-scripts.mjs` (ES Module) ([PR #1093](https://gi ...@@ -434,7 +435,7 @@ Migrate `npm-scripts.js` to `npm-scripts.mjs` (ES Module) ([PR #1093](https://gi
### 3.10.2 ### 3.10.2
- Fix release contents by including meson_options.txt ([PR #863](https://github.com/versatica/mediasoup/pull/863)). - Fix release contents by including `meson_options.txt` ([PR #863](https://github.com/versatica/mediasoup/pull/863)).
### 3.10.1 ### 3.10.1
......
...@@ -50,7 +50,7 @@ PIP_PYLINT_DIR = f'{MEDIASOUP_OUT_DIR}/pip_pylint'; ...@@ -50,7 +50,7 @@ PIP_PYLINT_DIR = f'{MEDIASOUP_OUT_DIR}/pip_pylint';
NUM_CORES = len(os.sched_getaffinity(0)) if hasattr(os, 'sched_getaffinity') else os.cpu_count(); NUM_CORES = len(os.sched_getaffinity(0)) if hasattr(os, 'sched_getaffinity') else os.cpu_count();
PYTHON = os.getenv('PYTHON') or sys.executable; PYTHON = os.getenv('PYTHON') or sys.executable;
MESON = os.getenv('MESON') or f'{PIP_MESON_NINJA_DIR}/bin/meson'; MESON = os.getenv('MESON') or f'{PIP_MESON_NINJA_DIR}/bin/meson';
MESON_VERSION = os.getenv('MESON_VERSION') or '1.3.0'; MESON_VERSION = os.getenv('MESON_VERSION') or '1.5.0';
# MESON_ARGS can be used to provide extra configuration parameters to meson, # MESON_ARGS can be used to provide extra configuration parameters to meson,
# such as adding defines or changing optimization options. For instance, use # such as adding defines or changing optimization options. For instance, use
# `MESON_ARGS="-Dms_log_trace=true -Dms_log_file_line=true" npm i` to compile # `MESON_ARGS="-Dms_log_trace=true -Dms_log_file_line=true" npm i` to compile
...@@ -61,7 +61,6 @@ MESON_ARGS = os.getenv('MESON_ARGS') if os.getenv('MESON_ARGS') else '--vsenv' i ...@@ -61,7 +61,6 @@ MESON_ARGS = os.getenv('MESON_ARGS') if os.getenv('MESON_ARGS') else '--vsenv' i
# Let's use a specific version of ninja to avoid buggy version 1.11.1: # Let's use a specific version of ninja to avoid buggy version 1.11.1:
# https://mediasoup.discourse.group/t/partly-solved-could-not-detect-ninja-v1-8-2-or-newer/ # https://mediasoup.discourse.group/t/partly-solved-could-not-detect-ninja-v1-8-2-or-newer/
# https://github.com/ninja-build/ninja/issues/2211 # https://github.com/ninja-build/ninja/issues/2211
# https://github.com/ninja-build/ninja/issues/2212
NINJA_VERSION = os.getenv('NINJA_VERSION') or '1.10.2.4'; NINJA_VERSION = os.getenv('NINJA_VERSION') or '1.10.2.4';
PYLINT_VERSION = os.getenv('PYLINT_VERSION') or '3.0.2'; PYLINT_VERSION = os.getenv('PYLINT_VERSION') or '3.0.2';
NPM = os.getenv('NPM') or 'npm'; NPM = os.getenv('NPM') or 'npm';
...@@ -389,7 +388,7 @@ def test(ctx): ...@@ -389,7 +388,7 @@ def test(ctx):
); );
@task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=address'), flatc]) @task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=address -Db_lundef=false'), flatc])
def test_asan_address(ctx): def test_asan_address(ctx):
""" """
Run worker test with Address Sanitizer with '-fsanitize=address' Run worker test with Address Sanitizer with '-fsanitize=address'
...@@ -420,7 +419,7 @@ def test_asan_address(ctx): ...@@ -420,7 +419,7 @@ def test_asan_address(ctx):
); );
@task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=undefined'), flatc]) @task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=undefined -Db_lundef=false'), flatc])
def test_asan_undefined(ctx): def test_asan_undefined(ctx):
""" """
Run worker test with undefined Sanitizer with -fsanitize=undefined Run worker test with undefined Sanitizer with -fsanitize=undefined
...@@ -451,7 +450,7 @@ def test_asan_undefined(ctx): ...@@ -451,7 +450,7 @@ def test_asan_undefined(ctx):
); );
@task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=thread'), flatc]) @task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=thread -Db_lundef=false'), flatc])
def test_asan_thread(ctx): def test_asan_thread(ctx):
""" """
Run worker test with thread Sanitizer with -fsanitize=thread Run worker test with thread Sanitizer with -fsanitize=thread
...@@ -511,7 +510,7 @@ def tidy(ctx): ...@@ -511,7 +510,7 @@ def tidy(ctx):
); );
@task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=address'), flatc]) @task(pre=[call(setup, meson_args=MESON_ARGS + ' -Db_sanitize=address -Db_lundef=false'), flatc])
def fuzzer(ctx): def fuzzer(ctx):
""" """
Build the mediasoup-worker-fuzzer binary (which uses libFuzzer) Build the mediasoup-worker-fuzzer binary (which uses libFuzzer)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论