diff --git a/action.yml b/action.yml index ab07817dc..dcd1bae93 100644 --- a/action.yml +++ b/action.yml @@ -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 }}" @@ -47,8 +51,7 @@ runs: # Windows needs powershell to interact nicely with Meson - 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 }}"