Skip to content

Commit ecd99a3

Browse files
Use cibuildwheel action with config in pyproject.toml
1 parent 3a7c8f3 commit ecd99a3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/actions/reusable-build/action.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ inputs:
77
runs:
88
using: 'composite'
99
steps:
10-
- name: Install `cibuildwheel`
11-
shell: bash
12-
run: |
13-
pip install cibuildwheel
14-
1510
- name: Build the package for Python ${{ inputs.python-version }}
16-
shell: bash
17-
run: |
18-
cibuildwheel --output-dir dist
11+
uses: pypa/cibuildwheel@v3.1.3
12+
env:
13+
with:
14+
output-dir: dist
1915

2016
- name: Upload wheel artifact for Python ${{ inputs.python-version }}
2117
uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"wheel",
5+
]
6+
7+
[tool.cibuildwheel]
8+
environment = { TF_VERSION="RELEASED_TF_2" }

0 commit comments

Comments
 (0)