-
Notifications
You must be signed in to change notification settings - Fork 55
87 lines (73 loc) · 2.27 KB
/
ecosystem.yml
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
name: ecosystem build checker
on:
# allow manually trigger
workflow_dispatch:
push:
branches:
- main
- 'maint-**'
pull_request:
branches:
- main
- 'maint-**'
permissions:
contents: read
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
changed: ${{ steps.filter.outputs.ecosystem == 'true' }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v2
id: filter
with:
filters: .github/path_filters.yml
build:
needs: changes
if: ${{ github.repository == 'OpenVisualCloud/Media-Transport-Library' && needs.changes.outputs.changed == 'true' }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install the build dependency
run: |
sudo apt-get update -y
sudo apt-get install -y sudo git gcc meson python3 python3-pyelftools pkg-config libnuma-dev libjson-c-dev libpcap-dev libgtest-dev libsdl2-dev libsdl2-ttf-dev libssl-dev
sudo apt-get install -y dpdk-dev
sudo apt-get install -y libobs-dev
sudo apt-get install -y swig
sudo apt-get install -y systemtap-sdt-dev
- name: Git config
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- name: Build
run: |
./build.sh
- name: Build obs plugin
run: |
./script/build_obs_plugin.sh
- name: Build librist with mtl
run: |
cd ecosystem/librist/
./build_librist_mtl.sh
- name: Build python binding
run: |
./script/build_python.sh
- name: Build Rust binding
run: |
cd rust/
cargo clippy --all-targets
cargo build --all-targets --verbose
cd imtl-sys
cargo test --verbose