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:
8787 steps :
8888 - name : Install action dependencies
8989 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
9497 - name : Run cpp-linter
9598 id : cpp-linter
9699 shell : bash
97100 run : |
101+ if [[ "${{runner.os}}" == "macOS" ]];then
102+ source '${{ github.action_path }}/venv/bin/activate'
103+ fi
98104 cpp-linter \
99105 --style="${{ inputs.style }}" \
100106 --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