fix: action still runs if setup-python is not called (#542)
* fix: action works if setup-python is missed * fix: two steps * fix: combine again * fix: use pipx for action
This commit is contained in:
+6
-4
@@ -19,8 +19,10 @@ runs:
|
||||
|
||||
# This needs powershell-core because github.action path is a Windows-style
|
||||
# path on Windows. Powershell-core understands both types of paths.
|
||||
- run: python -m pip install ${{ github.action_path }}
|
||||
- run: >
|
||||
pipx run
|
||||
--spec ${{ github.action_path }}
|
||||
cibuildwheel
|
||||
${{ inputs.package-dir }}
|
||||
--output-dir ${{ inputs.output-dir }}
|
||||
shell: pwsh
|
||||
|
||||
- run: python -m cibuildwheel ${{ inputs.package-dir }} --output-dir ${{ inputs.output-dir }}
|
||||
shell: bash
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@ If you use GitHub Actions for builds, you can use cibuildwheel as an action:
|
||||
uses: joerick/cibuildwheel@v1.7.4
|
||||
```
|
||||
|
||||
This is a composite step that just installs and runs cibuildwheel. You can set command-line options as `with:` parameters, and use `env:` as normal.
|
||||
This is a composite step that just runs cibuildwheel using pipx. You can set command-line options as `with:` parameters, and use `env:` as normal.
|
||||
|
||||
Then, your `dependabot.yml` file could look like this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user