-
-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (29 loc) · 794 Bytes
/
cppcheck.yml
File metadata and controls
35 lines (29 loc) · 794 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
name: cpp check workflows
on:
push:
branches:
- 'develop'
paths:
- 'XEngine_Source/**'
- 'XEngine_Release/**'
- '.github/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout main repository code
uses: actions/checkout@v6
with:
ref: 'develop'
- name: Create static_analysis directory
run: mkdir -p static_analysis
- name: Run Cppcheck
run: |
sudo apt-get install -y cppcheck
cppcheck --enable=all --language=c++ --std=c++20 ./XEngine_Source/ --output-file=static_analysis/log.xml --xml
continue-on-error: true
- name: Upload Cppcheck Results
uses: actions/upload-artifact@v6
with:
name: cppcheck_results
path: static_analysis/log.xml