diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f00a249..2ecbee8 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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-*" @@ -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 }}_*" diff --git a/pyproject.toml b/pyproject.toml index d2afde5..bd99615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",