mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-16 22:02:31 -05:00
feat: propagate --target through pipeline.py
This commit is contained in:
@@ -140,6 +140,7 @@ def main():
|
|||||||
# --include-extras is now a no-op: core requirements are always included
|
# --include-extras is now a no-op: core requirements are always included
|
||||||
parser.add_argument("--include-extras", action="store_true",
|
parser.add_argument("--include-extras", action="store_true",
|
||||||
help="(no-op) Core requirements are always included")
|
help="(no-op) Core requirements are always included")
|
||||||
|
parser.add_argument("--target", "-t", help="Hardware target (e.g., switch, rpi4)")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
results = {}
|
results = {}
|
||||||
@@ -172,6 +173,8 @@ def main():
|
|||||||
verify_cmd = [sys.executable, "scripts/verify.py", "--all"]
|
verify_cmd = [sys.executable, "scripts/verify.py", "--all"]
|
||||||
if args.include_archived:
|
if args.include_archived:
|
||||||
verify_cmd.append("--include-archived")
|
verify_cmd.append("--include-archived")
|
||||||
|
if args.target:
|
||||||
|
verify_cmd.extend(["--target", args.target])
|
||||||
ok, verify_output = run(verify_cmd, "3/7 verify all platforms")
|
ok, verify_output = run(verify_cmd, "3/7 verify all platforms")
|
||||||
results["verify"] = ok
|
results["verify"] = ok
|
||||||
all_ok = all_ok and ok
|
all_ok = all_ok and ok
|
||||||
@@ -189,6 +192,8 @@ def main():
|
|||||||
pack_cmd.append("--offline")
|
pack_cmd.append("--offline")
|
||||||
if args.include_extras:
|
if args.include_extras:
|
||||||
pack_cmd.append("--include-extras")
|
pack_cmd.append("--include-extras")
|
||||||
|
if args.target:
|
||||||
|
pack_cmd.extend(["--target", args.target])
|
||||||
ok, pack_output = run(pack_cmd, "4/7 generate packs")
|
ok, pack_output = run(pack_cmd, "4/7 generate packs")
|
||||||
results["generate_packs"] = ok
|
results["generate_packs"] = ok
|
||||||
all_ok = all_ok and ok
|
all_ok = all_ok and ok
|
||||||
|
|||||||
Reference in New Issue
Block a user