-
-
Notifications
You must be signed in to change notification settings - Fork 164
53 lines (46 loc) · 1.6 KB
/
analyze.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
name: Lint
on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
git cmake clang clang-tools ninja-build \
libdrm-dev libgbm-dev fonts-liberation fontconfig libsystemd-dev libinput-dev libudev-dev \
libxkbcommon-dev ninja-build libgstreamer-plugins-base1.0-dev \
libvulkan-dev \
libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa \
libunwind-dev
- name: Configure
run: |
export
scan-build \
-o $GITHUB_WORKSPACE/reports/ \
cmake \
-B build \
-S . \
-GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_GSTREAMER_AUDIO_PLAYER_PLUGIN=On \
-DBUILD_GSTREAMER_VIDEO_PLAYER_PLUGIN=On \
-DENABLE_VULKAN=ON \
-DENABLE_OPENGL=ON
- name: Analyze
id: analyze
run: |
scan-build \
--status-bugs \
-o $GITHUB_WORKSPACE/reports/ \
cmake --build build
- name: Upload report on failure
if: failure() && steps.analyze.conclusion == 'failure'
uses: actions/upload-artifact@v4
with:
name: analysis-report
path: ${{ github.workspace }}/reports/