From 2d18de8aacd77f9d0c95068d47b605741bbf7a94 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 25 Nov 2022 13:54:33 -0500 Subject: [PATCH] fix: action using powershell on Windows (#1346) * fix: action more native on Windows Signed-off-by: Henry Schreiner * fix: powershell on Windows Signed-off-by: Henry Schreiner Signed-off-by: Henry Schreiner --- action.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 31c6b42b..9ce2e257 100644 --- a/action.yml +++ b/action.yml @@ -37,9 +37,23 @@ runs: --python '${{ steps.python.outputs.python-path }}' --spec '${{ github.action_path }}' cibuildwheel - ${{ inputs.package-dir }} - --output-dir ${{ inputs.output-dir }} + "${{ inputs.package-dir }}" + --output-dir "${{ inputs.output-dir }}" --config-file "${{ inputs.config-file }}" --only "${{ inputs.only }}" 2>&1 shell: bash + if: runner.os != 'Windows' + + # Windows needs powershell to interact nicely with Meson + - run: > + pipx run + --python "${{ steps.python.outputs.python-path }}" + --spec "${{ github.action_path }}" + cibuildwheel + "${{ inputs.package-dir }}" + --output-dir '"${{ inputs.output-dir }}"' + --config-file '"${{ inputs.config-file }}"' + --only '"${{ inputs.only }}"' + shell: pwsh + if: runner.os == 'Windows'