From 0b67ed5990d3c8eb4cfde771f4e215bd7c83a0a4 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 8 Jan 2023 12:18:05 +0700 Subject: [PATCH] add `cxx-compiler` input option --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 4be2805..26305f8 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,9 @@ inputs: c-compiler: description: The preferred executable for compiling C language files required: false + cxx-compiler: + description: The preferred executable for compiling CXX language files + required: false args: description: Additional arguments passed during CMake configuration required: false @@ -30,6 +33,9 @@ runs: if [ -n '${{ inputs.c-compiler }}' ]; then CONFIGURE_ARGS="$CONFIGURE_ARGS -D CMAKE_C_COMPILER=${{ inputs.c-compiler }}" fi + if [ -n '${{ inputs.cxx-compiler }}' ]; then + CONFIGURE_ARGS="$CONFIGURE_ARGS -D CMAKE_CXX_COMPILER=${{ inputs.cxx-compiler }}" + fi if [ -n '${{ inputs.args }}' ]; then CONFIGURE_ARGS="$CONFIGURE_ARGS ${{ inputs.args }}" fi