@@ -36,14 +36,14 @@ jobs:
3636 run : |
3737 {
3838 cibuildwheel --print-build-identifiers --platform linux \
39- | pyp 'json.dumps( {"only": x , "os": "ubuntu-latest"})' \
40- && cibuildwheel --print-build-identifiers --platform macos \
41- | pyp 'json.dumps( {"only": x , "os": "macos-latest"})' \
42- && cibuildwheel --print-build-identifiers --platform windows \
43- | pyp 'json.dumps( {"only": x , "os": "windows-latest"})' \
44- && cibuildwheel --print-build-identifiers --platform windows --archs ARM64 \
45- | pyp 'json.dumps( {"only": x , "os": "windows-11-arm"}) '
46- } | pyp 'json.dumps(list(map(json.loads, lines))) ' > /tmp/matrix
39+ | jq -Rn '[ {"only": inputs , "os": "ubuntu-latest"}]'
40+ cibuildwheel --print-build-identifiers --platform macos \
41+ | jq -Rn '[ {"only": inputs , "os": "macos-latest"}]'
42+ cibuildwheel --print-build-identifiers --platform windows \
43+ | jq -Rn '[ {"only": inputs , "os": "windows-latest"}]'
44+ cibuildwheel --print-build-identifiers --platform windows --archs ARM64 \
45+ | jq -Rn '[ {"only": inputs , "os": "windows-11-arm"}] '
46+ } | jq -cs 'add ' > /tmp/matrix
4747 env :
4848 CIBW_ARCHS_LINUX : x86_64
4949 CIBW_ARCHS_MACOS : x86_64 arm64
5454 github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci: build all wheels')
5555 run : |
5656 {
57- CIBW_BUILD="cp310-*" cibuildwheel --print-build-identifiers --platform linux | pyp 'json.dumps({"only": x, "os": "ubuntu-latest"})'
58- CIBW_BUILD="cp314-*" cibuildwheel --print-build-identifiers --platform windows | pyp 'json.dumps({"only": x, "os": "windows-latest"})'
59- } | pyp 'json.dumps(list(map(json.loads, lines)))' > /tmp/matrix
57+ CIBW_BUILD="cp310-*" cibuildwheel --print-build-identifiers --platform linux \
58+ | jq -Rn '[{"only": inputs, "os": "ubuntu-latest"}]'
59+ CIBW_BUILD="cp314-*" cibuildwheel --print-build-identifiers --platform windows \
60+ | jq -Rn '[{"only": inputs, "os": "windows-latest"}]'
61+ } | jq -cs 'add' > /tmp/matrix
6062 env :
6163 CIBW_ARCHS_LINUX : x86_64
6264
0 commit comments