mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-22 11:31:21 +00:00
add a new test-args
action input for passing additional arguments during the CTest run
This commit is contained in:
parent
633b25cfad
commit
03870ba3b0
@ -24,6 +24,7 @@ For more information, see [action.yml](./action.yml) and [GitHub Actions guide](
|
|||||||
| `c-flags` | Multiple strings | Additional flags passed when compiling C language files. |
|
| `c-flags` | Multiple strings | Additional flags passed when compiling C language files. |
|
||||||
| `cxx-flags` | Multiple strings | Additional flags passed when compiling C++ language files. |
|
| `cxx-flags` | Multiple strings | Additional flags passed when compiling C++ language files. |
|
||||||
| `args` | Multiple strings | Additional arguments passed during the CMake configuration. |
|
| `args` | Multiple strings | Additional arguments passed during the CMake configuration. |
|
||||||
|
| `test-args` | Multiple strings | Additional arguments passed during the CTest run. |
|
||||||
|
|
||||||
> Note: Multiple strings mean that the input could be specified with more than one value. Separate each value with a space or a new line.
|
> Note: Multiple strings mean that the input could be specified with more than one value. Separate each value with a space or a new line.
|
||||||
|
|
||||||
|
@ -36,6 +36,9 @@ inputs:
|
|||||||
args:
|
args:
|
||||||
description: Additional arguments passed during the CMake configuration
|
description: Additional arguments passed during the CMake configuration
|
||||||
required: false
|
required: false
|
||||||
|
test-args:
|
||||||
|
description: Additional arguments passed during the CTest run
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
@ -80,6 +83,9 @@ runs:
|
|||||||
if [ -n '${{ inputs.args }}' ]; then
|
if [ -n '${{ inputs.args }}' ]; then
|
||||||
ARGS="$ARGS ${{ inputs.args }}"
|
ARGS="$ARGS ${{ inputs.args }}"
|
||||||
fi
|
fi
|
||||||
|
if [ -n '${{ inputs.test-args }}' ]; then
|
||||||
|
TEST_ARGS="$TEST_ARGS ${{ inputs.test-args }}"
|
||||||
|
fi
|
||||||
echo "cmake_args=${ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT
|
echo "cmake_args=${ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT
|
||||||
echo "cmake_build_args=${BUILD_ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT
|
echo "cmake_build_args=${BUILD_ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT
|
||||||
echo "cmake_test_args=${TEST_ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT
|
echo "cmake_test_args=${TEST_ARGS//[$'\t\r\n']}" >> $GITHUB_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user