Skip to content

Commit

Permalink
ci: try using uv with cibuildwheel
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jun 10, 2024
1 parent c99055c commit 394013f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup uv
uses: yezz123/setup-uv@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@main
env:
CIBW_BUILD: "cp312-*"

Expand Down Expand Up @@ -58,9 +61,12 @@ jobs:
with:
platforms: all

- name: Setup uv
uses: yezz123/setup-uv@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
env:
uses: pypa/cibuildwheel@main
with:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BUILD: "cp312-${{ matrix.tag }}_*"

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ line-length = 100
extend-select = ["I", "B", "UP"]

[tool.cibuildwheel]
build-frontend = "build[uv]"
test-command = [
"whisper-cpp -h",
"python -m whisper_cpp -h",
Expand Down

0 comments on commit 394013f

Please sign in to comment.