Skip to content

Commit

Permalink
Fix building pre-compiled wheels on Linux and Windows (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Jul 26, 2023
1 parent 1a5d9f3 commit eb0cb9d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos-cpu-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
jobs:
generate_build_matrix:
# see https://github.com/pytorch/pytorch/pull/50633
runs-on: ubuntu-latest
runs-on: macos-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ubuntu-cpu-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
with:
fetch-depth: 0

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install patchelf
shell: bash
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ubuntu-cuda-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
with:
fetch-depth: 0

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install patchelf
shell: bash
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/windows-x64-cpu-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: build-wheels-cpu-win64

on:
push:
branches:
- release
tags:
- '*'
workflow_dispatch:
Expand Down Expand Up @@ -47,7 +49,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD: pip install torch==${{ matrix.torch}}+cpu cmake numpy k2==1.24.3.dev20230720+cpu.torch${{ matrix.torch }} kaldifeat==1.24.dev20230724+cpu.torch${{ matrix.torch }} -f https://csukuangfj.github.io/kaldifeat/cpu.html -f https://k2-fsa.github.io/k2/cpu.html -f https://download.pytorch.org/whl/torch_stable.html
CIBW_BEFORE_BUILD: pip install torch==${{ matrix.torch}}+cpu cmake numpy k2==1.24.3.dev20230726+cpu.torch${{ matrix.torch }} kaldifeat==1.25.0.dev20230726+cpu.torch${{ matrix.torch }} -f https://csukuangfj.github.io/kaldifeat/cpu.html -f https://k2-fsa.github.io/k2/cpu.html -f https://download.pytorch.org/whl/torch_stable.html
CIBW_BUILD: ${{ matrix.python-version }}-win_amd64
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: ""
CIBW_BUILD_VERBOSITY: 3
Expand Down

0 comments on commit eb0cb9d

Please sign in to comment.