fix: action using powershell on Windows (#1346)
* fix: action more native on Windows Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * fix: powershell on Windows Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
+16
-2
@@ -37,9 +37,23 @@ runs:
|
|||||||
--python '${{ steps.python.outputs.python-path }}'
|
--python '${{ steps.python.outputs.python-path }}'
|
||||||
--spec '${{ github.action_path }}'
|
--spec '${{ github.action_path }}'
|
||||||
cibuildwheel
|
cibuildwheel
|
||||||
${{ inputs.package-dir }}
|
"${{ inputs.package-dir }}"
|
||||||
--output-dir ${{ inputs.output-dir }}
|
--output-dir "${{ inputs.output-dir }}"
|
||||||
--config-file "${{ inputs.config-file }}"
|
--config-file "${{ inputs.config-file }}"
|
||||||
--only "${{ inputs.only }}"
|
--only "${{ inputs.only }}"
|
||||||
2>&1
|
2>&1
|
||||||
shell: bash
|
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user