Skip to content

Commit 3edc672

Browse files
authored
🚸 allow configuration of the cpp-linter extra-args (#16)
1 parent 536d0c4 commit 3edc672

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/reusable-cpp-linter.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
description: "Additional arguments to pass to CMake"
1515
default: ""
1616
type: string
17+
cpp-linter-extra-args:
18+
description: "Extra arguments to pass to the cpp-linter"
19+
default: "-std=c++17"
20+
type: string
1721
setup-z3:
1822
description: "Whether to set up Z3"
1923
default: false
@@ -78,7 +82,7 @@ jobs:
7882
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}
7983
step-summary: true
8084
database: "build"
81-
extra-args: -std=c++17
85+
extra-args: ${{ inputs.cpp-linter-extra-args }}
8286
files-changed-only: ${{ inputs.files-changed-only }}
8387
- name: Fail if linter found errors
8488
if: steps.linter.outputs.checks-failed > 0

0 commit comments

Comments
 (0)