Files
simplex-chat/scripts/nix/ci-matrix.py
T
Moritz Angermann 4051b8f71f Fix Android pthread metadata before mobile shared linking
Patch crypton and direct-sqlcipher before planning: Bionic supplies pthread in libc and the NDK has no separate libpthread. Preserve compiler threading flags and the shared-link adapter.

Check Android-only source selection and allow the existing Android CI group to be dispatched independently for final-link validation.
2026-10-17 08:20:19 +09:00

29 lines
1.1 KiB
Python

#!/usr/bin/env python3
"""Select existing Nix CI groups; PRs and pushes use the complete matrix."""
import argparse
import json
ROWS = (
("x86_64-linux", "ubuntu-24.04", "native"),
("x86_64-linux", "ubuntu-24.04", "android"),
("x86_64-linux", "ubuntu-24.04", "windows"),
("x86_64-linux", "ubuntu-24.04", "linux-static"),
("aarch64-linux", "ubuntu-24.04-arm", "native"),
("aarch64-darwin", "macos-15", "all"),
("x86_64-darwin", "macos-15-intel", "all"),
)
def select(group):
if group not in ("all", "linux-static", "android"):
raise ValueError(f"unknown Nix CI group: {group}")
rows = ROWS if group == "all" else tuple(row for row in ROWS if row[2] == group)
return {"include": [dict(system=system, runner=runner, target=target)
for system, runner, target in rows]}
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--group", choices=["all", "linux-static", "android"], default="all")
print(json.dumps(select(parser.parse_args().group), separators=(",", ":")))