Commit b211e1e 1 parent 0c245b7 commit b211e1e Copy full SHA for b211e1e
File tree 1 file changed +1
-26
lines changed
1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change 1
- name : PlatformIO Build, Lint, and Style Checks for M5Stick-C
1
+ name : Build, Lint
2
2
3
3
on :
4
4
push :
35
35
- name : Generate Compilation Database
36
36
run : platformio run -e m5stick-c -t compiledb
37
37
38
- - name : Upload Compilation Database
39
- uses : actions/upload-artifact@v3
40
- with :
41
- name : compile-commands
42
- path : compile_commands.json
43
-
44
38
lint :
45
39
runs-on : ubuntu-latest
46
40
53
47
54
48
- name : Run cppcheck
55
49
run : cppcheck --enable=all --inconclusive --std=c++17 --suppress=missingIncludeSystem src include
56
-
57
- style :
58
- runs-on : ubuntu-latest
59
- needs : build # Ensure this job waits for 'build' to complete
60
-
61
- steps :
62
- - name : Checkout repository
63
- uses : actions/checkout@v3
64
-
65
- - name : Download Compilation Database
66
- uses : actions/download-artifact@v3
67
- with :
68
- name : compile-commands
69
-
70
- - name : Install clang-tidy
71
- run : sudo apt-get update && sudo apt-get install -y clang-tidy
72
-
73
- - name : Run clang-tidy
74
- run : clang-tidy -p compile_commands.json src/**/*.cpp
You can’t perform that action at this time.
0 commit comments