Skip to content

Commit

Permalink
Add support for PowerShell 7.4 in GHA
Browse files Browse the repository at this point in the history
Fixes compatibility with PowerShell 7.3 on Windows through GitHub
Actions when one of the options for cibuildwheel is empty.
  • Loading branch information
jborean93 committed Jan 29, 2024
1 parent d7db575 commit c753cd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ runs:
if: runner.os != 'Windows'
# Windows needs powershell to interact nicely with Meson
# $PSNativeCommandArgumentPassing was introduced in pwsh 7.3 and the
# legacy behaviour is needed for backwards compatibility with how this
# was called in the past.
- run: >
if ($PSNativeCommandArgumentPassing) {
$PSNativeCommandArgumentPassing = 'Legacy'
};
pipx run
--python "${{ steps.python.outputs.python-path }}"
--spec "${{ github.action_path }}"
Expand Down

0 comments on commit c753cd2

Please sign in to comment.