Skip to content

Commit 5b0b458

Browse files
henryiiijoerick
andauthored
fix: download pipx for action, allow support for M1 (#1743)
* fix: download pipx for action, allow support for M1 Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * 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 <henryschreineriii@gmail.com> Co-authored-by: Joe Rickerby <joerick@mac.com>
1 parent a7ea5fb commit 5b0b458

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ runs:
3131
python-version: "3.8 - 3.12"
3232
update-environment: false
3333

34+
# macos-14 (M1) may be missing pipx (due to it not having CPython)
35+
- run: |
36+
"${{ steps.python.outputs.python-path }}" -m pip install pipx
37+
shell: bash
38+
3439
# Redirecting stderr to stdout to fix interleaving issue in Actions.
3540
- run: >
36-
pipx run
37-
--python '${{ steps.python.outputs.python-path }}'
41+
"${{ steps.python.outputs.python-path }}" -m pipx run
3842
--spec '${{ github.action_path }}'
3943
cibuildwheel
4044
"${{ inputs.package-dir }}"
@@ -53,8 +57,7 @@ runs:
5357
if ($PSNativeCommandArgumentPassing) {
5458
$PSNativeCommandArgumentPassing = 'Legacy'
5559
};
56-
pipx run
57-
--python "${{ steps.python.outputs.python-path }}"
60+
& "${{ steps.python.outputs.python-path }}" -m pipx run
5861
--spec "${{ github.action_path }}"
5962
cibuildwheel
6063
"${{ inputs.package-dir }}"

0 commit comments

Comments
 (0)