Skip to content

Commit 65bb0de

Browse files
committed
continue on workflow
try to fix error: "Unrecognized named-value: 'matrix'"
1 parent 02ab319 commit 65bb0de

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/cibuildwheel.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ name: Build with cibuildwheel
66
on:
77
workflow_dispatch:
88
inputs:
9+
cibuildwheel_variant:
10+
type: choice
11+
default: 'pypa/[email protected]'
12+
options:
13+
14+
- 'loong64/[email protected]'
915
cibw_py_ver:
1016
default: 'cp312'
1117
type: string
@@ -18,6 +24,9 @@ on:
1824
emulated:
1925
default: true
2026
type: boolean
27+
emulated_loongson:
28+
default: false
29+
type: boolean
2130

2231
permissions: {}
2332

@@ -54,16 +63,16 @@ jobs:
5463
image: manylinux
5564
enabled: ${{ inputs.ibm }}
5665
needs_emulator: true # false
57-
- os: ubuntu-24.04
58-
arch: loongarch64
59-
image: manylinux
60-
enabled: ${{ inputs.emulated }}
6166
needs_emulator: true
6267
- os: ubuntu-24.04
6368
arch: riscv64
6469
image: manylinux
6570
enabled: ${{ inputs.emulated }}
6671
needs_emulator: true
72+
- os: ubuntu-24.04
73+
arch: loongarch64
74+
image: manylinux
75+
enabled: ${{ inputs.emulated_loongson }}
6776

6877
steps:
6978

@@ -79,8 +88,7 @@ jobs:
7988

8089
- name: Build wheels
8190
if: ${{ matrix.enabled }}
82-
# LoongArch is not supported in mainline cibuildwheel yet, so use a patched fork for that
83-
uses: ${{ matrix.arch == 'loongarch64' && 'loong64/[email protected]' || 'pypa/[email protected]' }}
91+
uses: ${{ inputs.cibuildwheel_variant }}
8492
env:
8593
CIBW_ARCHS: ${{ matrix.arch }}
8694
# Will be tagged as not python specific by our setup.py. inputs.cibw_py_ver only controls the version used at build time. Could also use `*`, then cibuildwheel would build with the oldest supported version, and walk through the others but skip because a compatible wheel is around already.

0 commit comments

Comments
 (0)