From 6548c2aab5d0d3af47595bd65cae5f76bbae704f Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 17 Jan 2023 13:01:24 +0700 Subject: [PATCH] specify shell to use PowerShell on Windows --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 40d0287..af61157 100644 --- a/action.yml +++ b/action.yml @@ -78,9 +78,9 @@ runs: esac - name: Configure the CMake project - shell: bash + shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }} run: cmake ${{ steps.process_inputs.outputs.cmake_args }} - name: Build targets - shell: bash + shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }} run: cmake ${{ steps.process_inputs.outputs.cmake_build_args }}