-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
106 lines (95 loc) · 2.6 KB
/
mediasoup-node.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: mediasoup-node
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-20.04
node: 18
cc: gcc
cxx: g++
- os: ubuntu-22.04
node: 20
cc: gcc
cxx: g++
- os: ubuntu-22.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: 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
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 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
- name: npm run test:node
run: npm run test:node