Skip to content

Commit f915283

Browse files
committed
update
1 parent 4f3f4a6 commit f915283

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/publish_cuda_plugin.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ on:
55
types:
66
- released
77
workflow_dispatch:
8+
inputs:
9+
build_x86_64:
10+
description: "Build x86_64 wheels"
11+
type: boolean
12+
default: true
13+
build_aarch64:
14+
description: "Build aarch64 wheels"
15+
type: boolean
16+
default: true
817

918
jobs:
1019
build_wheel_linux:
@@ -15,8 +24,15 @@ jobs:
1524
matrix:
1625
arch: [x86_64, aarch64]
1726
py: ['3.11', '3.12', '3.13', '3.14']
18-
exclude:
19-
- arch: x86_64
27+
28+
if: >
29+
github.event_name == 'release' ||
30+
(github.event_name == 'workflow_dispatch' &&
31+
(
32+
(matrix.arch == 'x86_64' && inputs.build_x86_64 == true) ||
33+
(matrix.arch == 'aarch64' && inputs.build_aarch64 == true)
34+
)
35+
)
2036
2137
steps:
2238
- uses: actions/checkout@v5
@@ -29,7 +45,7 @@ jobs:
2945
- name: Set up Docker Buildx
3046
uses: docker/setup-buildx-action@v3
3147

32-
- name: Build wheel
48+
- name: Build ${{ matrix.arch }} wheel for Python ${{ matrix.py }}
3349
run: |
3450
ARCH=${{ matrix.arch }}
3551
PY=${{ matrix.py }}

0 commit comments

Comments
 (0)