Skip to content

Commit

Permalink
fix: download pipx for action, allow support for M1 (#1743)
Browse files Browse the repository at this point in the history
* fix: download pipx for action, allow support for M1

Signed-off-by: Henry Schreiner <[email protected]>

* Update action.yml

* Don't use the quotes on Powershell for command path

* Use & to invoke a command with a string argument

---------

Signed-off-by: Henry Schreiner <[email protected]>
Co-authored-by: Joe Rickerby <[email protected]>
  • Loading branch information
henryiii and joerick authored Jan 30, 2024
1 parent a7ea5fb commit 5b0b458
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ runs:
python-version: "3.8 - 3.12"
update-environment: false

# macos-14 (M1) may be missing pipx (due to it not having CPython)
- run: |
"${{ steps.python.outputs.python-path }}" -m pip install pipx
shell: bash
# Redirecting stderr to stdout to fix interleaving issue in Actions.
- run: >
pipx run
--python '${{ steps.python.outputs.python-path }}'
"${{ steps.python.outputs.python-path }}" -m pipx run
--spec '${{ github.action_path }}'
cibuildwheel
"${{ inputs.package-dir }}"
Expand All @@ -53,8 +57,7 @@ runs:
if ($PSNativeCommandArgumentPassing) {
$PSNativeCommandArgumentPassing = 'Legacy'
};
pipx run
--python "${{ steps.python.outputs.python-path }}"
& "${{ steps.python.outputs.python-path }}" -m pipx run
--spec "${{ github.action_path }}"
cibuildwheel
"${{ inputs.package-dir }}"
Expand Down

0 comments on commit 5b0b458

Please sign in to comment.