From 394013ffec2756d8c62e9749bd6f15d65c1d643b Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 10 Jun 2024 00:59:59 -0400 Subject: [PATCH] ci: try using uv with cibuildwheel Signed-off-by: Henry Schreiner --- .github/workflows/workflow.yml | 12 +++++++++--- pyproject.toml | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) 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",