Skip to content

Commit c6412f7

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

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/cibuildwheel.yaml

Lines changed: 13 additions & 5 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

@@ -55,14 +64,14 @@ jobs:
5564
enabled: ${{ inputs.ibm }}
5665
needs_emulator: true # false
5766
- os: ubuntu-24.04
58-
arch: loongarch64
67+
arch: riscv64
5968
image: manylinux
6069
enabled: ${{ inputs.emulated }}
6170
needs_emulator: true
6271
- os: ubuntu-24.04
63-
arch: riscv64
72+
arch: loongarch64
6473
image: manylinux
65-
enabled: ${{ inputs.emulated }}
74+
enabled: ${{ inputs.emulated_loongson }}
6675
needs_emulator: true
6776

6877
steps:
@@ -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)