Skip to content

Commit

Permalink
Document config-file, and add with: into example
Browse files Browse the repository at this point in the history
  • Loading branch information
abitrolly committed Jun 18, 2022
1 parent 52945e1 commit 6994d9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,9 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
{% include "../examples/github-minimal.yml" %}
```


You can use `env:` with the action just like you would with `run:`; you can
also use `with:` to set the command line options: `package-dir: .` and
`output-dir: wheelhouse` (those values are the defaults).
Use `env:` to pass [build options](options.md) and `with:` to set
`package-dir: .`, `output-dir: wheelhouse` and `config-file: ''`
locations (those values are the defaults).

!!! tab "pipx"
The GitHub Actions runners have pipx installed, so you can easily build in
Expand Down
6 changes: 5 additions & 1 deletion examples/github-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ jobs:

- name: Build wheels
uses: pypa/cibuildwheel@v2.7.0
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
# ...
# with:
# package-dir: .
# output-dir: wheelhouse
# config-file: {package}/pyproject.toml

- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 6994d9b

Please sign in to comment.