Skip to content

Commit 9f8ed28

Browse files
committed
Update GitHub workflows
1 parent 1a6bd30 commit 9f8ed28

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/pypi.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,12 @@ jobs:
6060
echo "CUDA_LIB_DIR=$LIB_DIR" >> $GITHUB_ENV
6161
shell: bash
6262

63-
- name: Build wheels
64-
uses: pypa/cibuildwheel@v2.23.3
63+
- name: Build wheel
6564
env:
66-
CIBW_SKIP: "*-manylinux_i686 *-musllinux_* *-win32"
67-
CIBW_BUILD_VERBOSITY: 1
68-
LIBTORCH_BYPASS_VERSION_CHECK: 1
69-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
70-
CIBW_MANYLINUX_ARM64_IMAGE: manylinux_2_28"
71-
CIBW_ENVIRONMENT: |
72-
PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu/torch_stable.html"
73-
CIBW_PIP_ARGS: --no-cache-dir
74-
CIBW_BEFORE_BUILD: "pip install torch==2.7.0 numpy maturin delvewheel"
75-
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
76-
LD_LIBRARY_PATH=$(python -c 'import torch, os; print(os.path.join(os.path.dirname(torch.__file__), "lib"))'):$LD_LIBRARY_PATH auditwheel repair -w {dest_dir} {wheel} --exclude libtorch.so --exclude libtorch_cpu.so --exclude libtorch_python.so
65+
LD_LIBRARY_PATH: ${{ env.CUDA_LIB_DIR }}:${LD_LIBRARY_PATH}
66+
CUDA_COMPUTE_CAP: ${{ matrix.variant.compute-caps }}
67+
run: maturin build --release --out dist
68+
shell: bash
7769

7870
- name: Upload wheel artifact
7971
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)