Skip to content

Commit aa24c28

Browse files
committed
ci: test build only with pytorch cpu
1 parent f244515 commit aa24c28

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: pypa/[email protected]
3434
env:
3535
CIBW_ARCHS_MACOS: "x86_64 arm64"
36-
PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"
36+
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cpu
3737

3838
- uses: actions/upload-artifact@v4
3939
with:

.github/workflows/test-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
name: Test Build
66

7+
78
on:
89
workflow_dispatch:
910
pull_request:
@@ -27,6 +28,8 @@ jobs:
2728
uses: pypa/[email protected]
2829
env:
2930
CIBW_ARCHS_MACOS: "x86_64 arm64"
31+
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cpu
32+
3033

3134
build_sdist:
3235
name: Build source distribution

0 commit comments

Comments
 (0)