forked from ihhub/fheroes2
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 953 Bytes
/
clang_analyzer.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
name: Clang Analyzer
on:
workflow_call:
jobs:
clang:
name: Clang Analyzer
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Install dependencies and clang-tools
run: |
sudo apt-get -y update
sudo apt-get -y install libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev gettext clang-tools-15
- name: Setup clang-tools
run: |
sudo update-alternatives --install /usr/bin/scan-build scan-build /usr/bin/scan-build-15 100
- name: Analyze
run: |
scan-build --status-bugs -v -o scan-build-result make -j 2
env:
FHEROES2_STRICT_COMPILATION: ON
FHEROES2_WITH_DEBUG: ON
FHEROES2_WITH_IMAGE: ON
FHEROES2_WITH_TOOLS: ON
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: scan-build-result
path: scan-build-result/