Skip to content

Commit a052369

Browse files
committed
fix: Output the CodeChecker and LLVM versions
1 parent 61bccd7 commit a052369

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

README.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -372,16 +372,19 @@ Please refer to earlier parts of the documentation for the configuration of thes
372372

373373
The action exposes the following outputs which may be used in a workflow's steps succeeding the analysis.
374374

375-
| Variable | Value | Description |
376-
|--------------------|-------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
377-
| `analyze-output` | Auto-generated, or `analyze-output` input | The directory where the **raw** analysis output files (either created by the analysers, or by the converter) are available. |
378-
| `logfile` | Auto-generated, or `logfile` input | The JSON Compilation Database of the analysis that was executed. |
379-
| `diff-html-dir` | Auto-generated. | The directory where the **user-friendly HTML** bug reports were generated to about the **new** findings (if `diff` was enabled). |
380-
| `diff-result-log` | Auto-generated. | `CodeChecker cmd diff`'s output log file which contains the **new** findings dumped into it. |
381-
| `diff-run-name` | Auto-generated, or `diff-run-name` input | The name of the analysis run (if `diff` was enabled) against which the reports were compared. |
382-
| `result-html-dir` | Auto-generated. | The directory where the **user-friendly HTML** bug reports were generated to. |
383-
| `result-log` | Auto-generated. | `CodeChecker parse`'s output log file which contains the findings dumped into it. |
384-
| `store-run-name` | Auto-generated, or `store-run-name` input | The name of the analysis run (if `store` was enabled) to which the results were uploaded to. |
385-
| `store-successful` | `true` or `false` | Whether storing the results succeeded. Useful for optionally breaking the build later to detect networking failures. |
386-
| `warnings` | `true` or `false` | Whether the static analysers reported any findings. |
387-
| `warnings-in-diff` | `true` or `false` | If `diff` was enabled, whether there were **new** findings in the current analysis when compared against the contents of the server. |
375+
| Variable | Value | Description |
376+
|-----------------------|-------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
377+
| `analyze-output` | Auto-generated, or `analyze-output` input | The directory where the **raw** analysis output files (either created by the analysers, or by the converter) are available. |
378+
| `codechecker-version` | Auto-generated (likely same as input `version`) | The version of the installed CodeChecker that performed the analysis. |
379+
| `codechecker-hash` | Auto-generated. | The Git hash of the installed CodeChecker that performed the analysis. |
380+
| `logfile` | Auto-generated, or `logfile` input | The JSON Compilation Database of the analysis that was executed. |
381+
| `llvm-version` | Auto-generated. | The full version string of the installed *LLVM/Clang* package (as reported by `clang --version`). |
382+
| `diff-html-dir` | Auto-generated. | The directory where the **user-friendly HTML** bug reports were generated to about the **new** findings (if `diff` was enabled). |
383+
| `diff-result-log` | Auto-generated. | `CodeChecker cmd diff`'s output log file which contains the **new** findings dumped into it. |
384+
| `diff-run-name` | Auto-generated, or `diff-run-name` input | The name of the analysis run (if `diff` was enabled) against which the reports were compared. |
385+
| `result-html-dir` | Auto-generated. | The directory where the **user-friendly HTML** bug reports were generated to. |
386+
| `result-log` | Auto-generated. | `CodeChecker parse`'s output log file which contains the findings dumped into it. |
387+
| `store-run-name` | Auto-generated, or `store-run-name` input | The name of the analysis run (if `store` was enabled) to which the results were uploaded to. |
388+
| `store-successful` | `true` or `false` | Whether storing the results succeeded. Useful for optionally breaking the build later to detect networking failures. |
389+
| `warnings` | `true` or `false` | Whether the static analysers reported any findings. |
390+
| `warnings-in-diff` | `true` or `false` | If `diff` was enabled, whether there were **new** findings in the current analysis when compared against the contents of the server. |

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ inputs:
9595
default: '__DEFAULT__'
9696

9797
outputs:
98+
codechecker-version:
99+
description: 'The version of the installed CodeChecker package.'
100+
value: ${{ steps.codechecker.outputs.VERSION }}
101+
codechecker-hash:
102+
description: 'The Git hash of the installed CodeChecker package.'
103+
value: ${{ steps.codechecker.outputs.GITSEVEN }}
104+
llvm-version:
105+
description: 'The version of the installed LLVM package, if the install was requested.'
106+
value: ${{ steps.llvm.outputs.REAL_VERSION }}
107+
98108
logfile:
99109
description: 'The location of the JSON Compilation Database that was used for the analysis.'
100110
value: ${{ steps.log.outputs.COMPILATION_DATABASE }}

src/pip-codechecker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if [[ ! -z "$CODECHECKER_ACTION_DEBUG" ]]; then
33
set -x
44
fi
55

6-
echo "::group::Installing CodeChecker for PyPI"
6+
echo "::group::Installing CodeChecker from PyPI"
77
if [[ "$IN_VERSION" == "master" ]]; then
88
# The default branch name "master" is offered as a convenient shortcut for
99
# fetching the latest release.

0 commit comments

Comments
 (0)