mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-02 03:50:55 +00:00
Merge remote-tracking branch 'origin/main' into add-compiler-inputs
This commit is contained in:
@@ -14,7 +14,10 @@ inputs:
|
||||
required: false
|
||||
default: build
|
||||
c-compiler:
|
||||
description: Preferred executable for compiling C language files
|
||||
description: The preferred executable for compiling C language files
|
||||
required: false
|
||||
args:
|
||||
description: Additional arguments passed during CMake configuration
|
||||
required: false
|
||||
runs:
|
||||
using: composite
|
||||
@@ -27,6 +30,9 @@ runs:
|
||||
if [ -n '${{ inputs.c-compiler }}' ]; then
|
||||
CONFIGURE_ARGS="$CONFIGURE_ARGS -D CMAKE_C_COMPILER=${{ inputs.c-compiler }}"
|
||||
fi
|
||||
if [ -n '${{ inputs.args }}' ]; then
|
||||
CONFIGURE_ARGS="$CONFIGURE_ARGS ${{ inputs.args }}"
|
||||
fi
|
||||
echo "CMAKE_CONFIGURE_ARGS=$CONFIGURE_ARGS" >> $GITHUB_ENV
|
||||
echo "CMAKE_BUILD_ARGS=$BUILD_ARGS" >> $GITHUB_ENV
|
||||
|
||||
|
||||
Reference in New Issue
Block a user