File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,20 @@ runs:
87
87
steps :
88
88
- name : Install action dependencies
89
89
shell : bash
90
- run : python3 -m pip install clang-tools==0.6.2 cpp-linter==1.4.8
91
- - name : Install clang-tools binary executables
92
- shell : bash
93
- run : clang-tools -i ${{ inputs.version }} -b
90
+ run : |
91
+ if [[ "${{runner.os}}" == "macOS" ]];then
92
+ python3 -m venv '${{ github.action_path }}/venv'
93
+ source '${{ github.action_path }}/venv/bin/activate'
94
+ fi
95
+ python3 -m pip install -r '${{ github.action_path }}/requirements.txt'
96
+ clang-tools -i ${{ inputs.version }} -b
94
97
- name : Run cpp-linter
95
98
id : cpp-linter
96
99
shell : bash
97
100
run : |
101
+ if [[ "${{runner.os}}" == "macOS" ]];then
102
+ source '${{ github.action_path }}/venv/bin/activate'
103
+ fi
98
104
cpp-linter \
99
105
--style="${{ inputs.style }}" \
100
106
--extensions=${{ inputs.extensions }} \
Original file line number Diff line number Diff line change
1
+ # Install clang-tools binaries (clang-format, clang-tidy)
2
+ # For details please see: https://github.com/cpp-linter/clang-tools-pip
3
+ clang-tools == 0.6.2
4
+
5
+ # cpp-linter core Python executable package
6
+ # For details please see: https://github.com/cpp-linter/cpp-linter
7
+ cpp-linter == 1.4.8
You can’t perform that action at this time.
0 commit comments