Skip to content

Commit

Permalink
Fix arm logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Dec 20, 2024
1 parent 9e82700 commit ba8abdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,7 @@ def _build_matrix(os_kind):
_matrix.append({"arch": "arm64"})
elif (
os_kind == "linux"
and "LINUX_ARM_RUNNER" in os.environ
and os.environ["LINUX_ARM_RUNNER"] != "0"
and os.environ.get("LINUX_ARM_RUNNER", "0") != "0"
):
_matrix.append({"arch": "arm64"})
return _matrix
Expand Down Expand Up @@ -908,7 +907,7 @@ def get_ci_deps_matrix(ctx: Context):
{"distro-slug": "windows-2022", "arch": "amd64"},
],
}
if "LINUX_ARM_RUNNER" in os.environ and os.environ["LINUX_ARM_RUNNER"] != "0":
if os.environ.get("LINUX_ARM_RUNNER", "0") != "0":
_matrix["linux"].append({"arch": "arm64"})

ctx.info("Generated matrix:")
Expand Down

0 comments on commit ba8abdd

Please sign in to comment.