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>
This commit is contained in:
Henry Schreiner
2024-01-30 18:00:26 -05:00
committed by GitHub
co-authored by Joe Rickerby
parent a7ea5fb408
commit 5b0b4583a8
+7 -4
View File
@@ -31,10 +31,14 @@ runs:
python-version: "3.8 - 3.12" python-version: "3.8 - 3.12"
update-environment: false 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. # Redirecting stderr to stdout to fix interleaving issue in Actions.
- run: > - run: >
pipx run "${{ steps.python.outputs.python-path }}" -m pipx run
--python '${{ steps.python.outputs.python-path }}'
--spec '${{ github.action_path }}' --spec '${{ github.action_path }}'
cibuildwheel cibuildwheel
"${{ inputs.package-dir }}" "${{ inputs.package-dir }}"
@@ -53,8 +57,7 @@ runs:
if ($PSNativeCommandArgumentPassing) { if ($PSNativeCommandArgumentPassing) {
$PSNativeCommandArgumentPassing = 'Legacy' $PSNativeCommandArgumentPassing = 'Legacy'
}; };
pipx run & "${{ steps.python.outputs.python-path }}" -m pipx run
--python "${{ steps.python.outputs.python-path }}"
--spec "${{ github.action_path }}" --spec "${{ github.action_path }}"
cibuildwheel cibuildwheel
"${{ inputs.package-dir }}" "${{ inputs.package-dir }}"