Skip to content

Commit b8981ec

Browse files
authored
Merge pull request #2084 from m-tmatma/feature/actions-cppcheck
Azure Pipeline でのみ実装されている cppcheck を GitHub Actions に移植する
2 parents b21cef4 + b2a7e6f commit b8981ec

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/cppcheck.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Cppcheck
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
- '.github/*'
8+
- '.gitignore'
9+
- '.editorconfig'
10+
- 'appveyor.yml'
11+
pull_request:
12+
paths-ignore:
13+
- '**/*.md'
14+
- '.github/*'
15+
- '.gitignore'
16+
- '.editorconfig'
17+
- 'appveyor.yml'
18+
workflow_dispatch:
19+
20+
jobs:
21+
cppcheck:
22+
runs-on: windows-latest
23+
strategy:
24+
matrix:
25+
BuildPlatform: [Win32, x64]
26+
Configuration: [Release]
27+
env:
28+
BuildPlatform: ${{ matrix.BuildPlatform }}
29+
Configuration: ${{ matrix.Configuration }}
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Show environment variables for debug
35+
run: set
36+
shell: cmd
37+
38+
- name: Install cppcheck
39+
run: msiexec /i externals\cppcheck\cppcheck-1.84-x64-Setup.msi /quiet /qn /norestart /log cppcheck-install.log
40+
shell: cmd
41+
42+
- name: Run cppcheck
43+
run: run-cppcheck.bat ${{ env.BuildPlatform }} ${{ env.Configuration }}
44+
shell: cmd
45+
46+
- name: Zip files for artifacts
47+
run: zipArtifacts.bat ${{ env.BuildPlatform }} ${{ env.Configuration }}
48+
shell: cmd
49+
50+
- name: Upload cppcheck log artifact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: cppcheck_${{ env.BuildPlatform }}_${{ env.Configuration }}
54+
path: '**Log.zip'

0 commit comments

Comments
 (0)