Skip to content

Commit

Permalink
fix: action using powershell on Windows (#1346)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
henryiii committed Nov 25, 2022
1 parent bcbcba7 commit 2d18de8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions action.yml
Expand Up @@ -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'

0 comments on commit 2d18de8

Please sign in to comment.