ci: fix iOS simulator selection indentation
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -172,7 +172,7 @@ jobs:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def version_key(rt: dict) -> tuple[int, ...]:
|
def version_key(rt: dict) -> tuple[int, ...]:
|
||||||
parts = []
|
parts: list[int] = []
|
||||||
for p in str(rt.get("version") or "0").split("."):
|
for p in str(rt.get("version") or "0").split("."):
|
||||||
try:
|
try:
|
||||||
parts.append(int(p))
|
parts.append(int(p))
|
||||||
@@ -193,7 +193,12 @@ jobs:
|
|||||||
print("No iPhone device types for iOS runtime.", file=sys.stderr)
|
print("No iPhone device types for iOS runtime.", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
iphones.sort(key=lambda dt: (0 if "iPhone 16" in str(dt.get("name") or "") else 1, str(dt.get("name") or "")))
|
iphones.sort(
|
||||||
|
key=lambda dt: (
|
||||||
|
0 if "iPhone 16" in str(dt.get("name") or "") else 1,
|
||||||
|
str(dt.get("name") or ""),
|
||||||
|
)
|
||||||
|
)
|
||||||
device_type_id = str(iphones[0].get("identifier") or "")
|
device_type_id = str(iphones[0].get("identifier") or "")
|
||||||
if not device_type_id:
|
if not device_type_id:
|
||||||
print("Missing iPhone device type identifier.", file=sys.stderr)
|
print("Missing iPhone device type identifier.", file=sys.stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user