mirror of
https://github.com/whisperity/CodeChecker-Action.git
synced 2026-02-09 14:47:43 +00:00
fix: Output the CodeChecker and LLVM versions
This commit is contained in:
@@ -373,9 +373,12 @@ Please refer to earlier parts of the documentation for the configuration of thes
|
||||
The action exposes the following outputs which may be used in a workflow's steps succeeding the analysis.
|
||||
|
||||
| Variable | Value | Description |
|
||||
|--------------------|-------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
|
||||
|-----------------------|-------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `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. |
|
||||
| `codechecker-version` | Auto-generated (likely same as input `version`) | The version of the installed CodeChecker that performed the analysis. |
|
||||
| `codechecker-hash` | Auto-generated. | The Git hash of the installed CodeChecker that performed the analysis. |
|
||||
| `logfile` | Auto-generated, or `logfile` input | The JSON Compilation Database of the analysis that was executed. |
|
||||
| `llvm-version` | Auto-generated. | The full version string of the installed *LLVM/Clang* package (as reported by `clang --version`). |
|
||||
| `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). |
|
||||
| `diff-result-log` | Auto-generated. | `CodeChecker cmd diff`'s output log file which contains the **new** findings dumped into it. |
|
||||
| `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. |
|
||||
|
||||
10
action.yml
10
action.yml
@@ -95,6 +95,16 @@ inputs:
|
||||
default: '__DEFAULT__'
|
||||
|
||||
outputs:
|
||||
codechecker-version:
|
||||
description: 'The version of the installed CodeChecker package.'
|
||||
value: ${{ steps.codechecker.outputs.VERSION }}
|
||||
codechecker-hash:
|
||||
description: 'The Git hash of the installed CodeChecker package.'
|
||||
value: ${{ steps.codechecker.outputs.GITSEVEN }}
|
||||
llvm-version:
|
||||
description: 'The version of the installed LLVM package, if the install was requested.'
|
||||
value: ${{ steps.llvm.outputs.REAL_VERSION }}
|
||||
|
||||
logfile:
|
||||
description: 'The location of the JSON Compilation Database that was used for the analysis.'
|
||||
value: ${{ steps.log.outputs.COMPILATION_DATABASE }}
|
||||
|
||||
@@ -3,7 +3,7 @@ if [[ ! -z "$CODECHECKER_ACTION_DEBUG" ]]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
echo "::group::Installing CodeChecker for PyPI"
|
||||
echo "::group::Installing CodeChecker from PyPI"
|
||||
if [[ "$IN_VERSION" == "master" ]]; then
|
||||
# The default branch name "master" is offered as a convenient shortcut for
|
||||
# fetching the latest release.
|
||||
|
||||
Reference in New Issue
Block a user