Skip to content

Commit

Permalink
ci: fix build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 18, 2023
1 parent d58ee4e commit b9b8c08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/scripts/matrices.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

import json
import os

Expand Down Expand Up @@ -88,12 +90,10 @@ def __init__(self, os: str, target: str, name: str, flags: str, partition: int):


def build_matrix():
os_ids = []
targets_ = []
expanded = []
for target in targets:
os_ids.append(target.os_id)
targets_.append(target.target)
print(json.dumps({"os": os_ids, "target": targets_}))
expanded.append({"os": target.os_id, "target": target.target})
print(json.dumps({"include": expanded}))


def test_matrix():
Expand Down

0 comments on commit b9b8c08

Please sign in to comment.