MCPcopy Index your code
hub / github.com/saltstack/salt / _build_matrix

Function _build_matrix

tools/ci.py:154–168  ·  view source on GitHub ↗

Generate matrix for build ci/cd steps.

(os_kind, linux_arm_runner)

Source from the content-addressed store, hash-verified

152
153
154def _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(

Callers 1

workflow_configFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected