diff --git a/.github/workflows/cpp-lint-action.yml b/.github/workflows/cpp-lint-action.yml index 0b58da6..062c805 100644 --- a/.github/workflows/cpp-lint-action.yml +++ b/.github/workflows/cpp-lint-action.yml @@ -3,7 +3,7 @@ name: cpp-linter as action on: workflow_dispatch: workflow_call: - pull_request: + # pull_request: jobs: @@ -44,13 +44,13 @@ jobs: # to ignore all build folder contents ignore: build database: build - verbosity: debug + # verbosity: debug version: ${{ matrix.clang-version }} thread-comments: ${{ matrix.clang-version == '16' }} file-annotations: ${{ matrix.clang-version == '16' }} extra-args: -std=c++14 -Wall tidy-review: ${{ matrix.clang-version == '16' }} - format-review: ${{ matrix.clang-version == '16' }} + # format-review: ${{ matrix.clang-version == '16' }} - name: Fail fast?! # if: steps.linter.outputs.checks-failed > 0 diff --git a/.github/workflows/cpp-lint-package.yml b/.github/workflows/cpp-lint-package.yml index 0418957..4b1f925 100644 --- a/.github/workflows/cpp-lint-package.yml +++ b/.github/workflows/cpp-lint-package.yml @@ -7,6 +7,7 @@ on: description: 'which branch to test' default: 'main' required: true + pull_request: jobs: cpp-linter: @@ -14,9 +15,9 @@ jobs: strategy: matrix: - clang-version: ['7', '8', '9','10', '11', '12', '13', '14', '15', '16', '17'] + clang-version: ['10', '11', '12', '13', '14', '15', '16', '17'] repo: ['cpp-linter/cpp-linter'] - branch: ['${{ inputs.branch }}'] + branch: ['address-75'] # ['${{ inputs.branch }}'] fail-fast: false steps: @@ -42,7 +43,7 @@ jobs: - name: Cache the build artifacts id: cache-build - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: build key: ${{ hashFiles('src/CMakeLists.txt', 'src/demo.cpp', 'src/demo.hpp') }} @@ -62,10 +63,11 @@ jobs: -i=build -p=build -V=${{ runner.temp }}/llvm - -f=false + --files-changed-only=true + --lines-changed-only=true --extra-arg="-std=c++14 -Wall" - --thread-comments=${{ matrix.clang-version == '12' }} - -a=${{ matrix.clang-version == '12' }} + --thread-comments=${{ matrix.clang-version == '16' }} + -a=${{ matrix.clang-version == '16' }} - name: Fail fast?! if: steps.linter.outputs.checks-failed > 0