Generate matrix for build ci/cd steps.
(os_kind, linux_arm_runner)
| 152 | |
| 153 | |
| 154 | def _build_matrix(os_kind, linux_arm_runner): |
| 155 | """ |
| 156 | Generate matrix for build ci/cd steps. |
| 157 | """ |
| 158 | _matrix = [{"arch": "x86_64"}] |
| 159 | if os_kind == "windows": |
| 160 | _matrix = [ |
| 161 | {"arch": "amd64"}, |
| 162 | {"arch": "x86"}, |
| 163 | ] |
| 164 | elif os_kind == "macos": |
| 165 | _matrix.append({"arch": "arm64"}) |
| 166 | elif os_kind == "linux" and linux_arm_runner: |
| 167 | _matrix.append({"arch": "arm64"}) |
| 168 | return _matrix |
| 169 | |
| 170 | |
| 171 | @ci.command( |
no test coverage detected