Document config-file, and add with: into example

https://github.com/pypa/cibuildwheel/blob/main/action.yml
This commit is contained in:
Anatoli Babenia
2022-06-18 15:27:16 +03:00
parent 52945e1668
commit 6994d9be4f
2 changed files with 8 additions and 5 deletions
+3 -4
View File
@@ -154,10 +154,9 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
{% include "../examples/github-minimal.yml" %} {% include "../examples/github-minimal.yml" %}
``` ```
Use `env:` to pass [build options](options.md) and `with:` to set
You can use `env:` with the action just like you would with `run:`; you can `package-dir: .`, `output-dir: wheelhouse` and `config-file: ''`
also use `with:` to set the command line options: `package-dir: .` and locations (those values are the defaults).
`output-dir: wheelhouse` (those values are the defaults).
!!! tab "pipx" !!! tab "pipx"
The GitHub Actions runners have pipx installed, so you can easily build in The GitHub Actions runners have pipx installed, so you can easily build in
+5 -1
View File
@@ -15,9 +15,13 @@ jobs:
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.7.0 uses: pypa/cibuildwheel@v2.7.0
# to supply options, put them in 'env', like:
# env: # env:
# CIBW_SOME_OPTION: value # CIBW_SOME_OPTION: value
# ...
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: {package}/pyproject.toml
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with: