forked from irlserver/belacoder
-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 920 Bytes
/
static-analysis.yml
File metadata and controls
40 lines (34 loc) · 920 Bytes
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
name: Static Analysis
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
clang-tidy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
clang-tidy \
cmake \
pkg-config \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev
- name: Install SRT library
run: |
git clone https://github.com/CERALIVE/srt.git /tmp/srt
cd /tmp/srt
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Run clang-tidy
run: make lint