Skip to content

Commit

Permalink
πŸ’š Fix ci build on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Jan 8, 2025
1 parent 0ee0804 commit 67a43d1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/publish-package-nocuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,19 @@ jobs:

- uses: astral-sh/setup-uv@v4

- name: install pytorch headers if macos # export CMAKE_PREFIX_PATH=$LIBTORCH
if: matrix.os == 'macos-latest'
run: |
curl -LO https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.5.1.zip
unzip libtorch-macos-arm64-2.5.1.zip
export LIBTORCH=/usr/local/libtorch
sudo mv libtorch $LIBTORCH
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_SKIP: cp36-* cp37-* cp38-*
CIBW_SKIP: cp36-* cp37-* cp38-* cp313-macosx_*
CIBW_ENABLE: cpython-prerelease
CIBW_ARCHS_WINDOWS: "x86"
CIBW_ARCHS_MACOS: "arm64"
CIBW_ARCHS_LINUX: "i686"
CIBW_BEFORE_MACOS: >
curl -LO https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.5.1.zip
unzip libtorch-macos-arm64-2.5.1.zip
export LIBTORCH=/usr/local/libtorch
sudo mv libtorch $LIBTORCH
- name: Verify clean directory
run: git diff --exit-code
Expand Down

0 comments on commit 67a43d1

Please sign in to comment.