Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,20 @@ runs:
steps:
- name: Install action dependencies
shell: bash
run: python3 -m pip install clang-tools==0.6.2 cpp-linter==1.4.8
- name: Install clang-tools binary executables
shell: bash
run: clang-tools -i ${{ inputs.version }} -b
run: |
if [[ "${{runner.os}}" == "macOS" ]];then
python3 -m venv venv
source venv/bin/activate
fi
python3 -m pip install -r ${{ github.action_path }}/requirements.txt
clang-tools -i ${{ inputs.version }} -b
- name: Run cpp-linter
id: cpp-linter
shell: bash
run: |
if [[ "${{runner.os}}" == "macOS" ]];then
source venv/bin/activate;
fi
cpp-linter \
--style="${{ inputs.style }}" \
--extensions=${{ inputs.extensions }} \
Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Install clang-tools binaries (clang-format, clang-tidy)
# For details please see: https://github.com/cpp-linter/clang-tools-pip
clang-tools==0.6.2

# cpp-linter core Python executable package
# For details please see: https://github.com/cpp-linter/cpp-linter
cpp-linter==1.4.8