-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
WindowsExecuted on WimdowsExecuted on WimdowsbugSomething isn't workingSomething isn't workingcompilation databaseclang-tidy didn't use a compilation databaseclang-tidy didn't use a compilation database
Description
First of all, great Action!
I noticed that when setting an absolute path to the compilation database I receive wrong paths.
- name: Run clang-tidy and clang-format
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
database: ${{github.workspace}}/out/build/${{matrix.arch}}-${{env.BUILD_TYPE}}
thread-comments: true
step-summary: true
Produces "D:\a\figures-counter\figures-counter\afigures-counterfigures-counter\out\build\x64-debug"
instead of the correct path "D:\a\figures-counter\figures-counter\out\build\x64-debug"
The workaround is to omit the prefix and use relative path
database: out/build/${{matrix.arch}}-${{env.BUILD_TYPE}}
Metadata
Metadata
Assignees
Labels
WindowsExecuted on WimdowsExecuted on WimdowsbugSomething isn't workingSomething isn't workingcompilation databaseclang-tidy didn't use a compilation databaseclang-tidy didn't use a compilation database