Skip to content

Commit 18a5e87

Browse files
feat: a way to not build a distro in github matrix build
1 parent 0066a87 commit 18a5e87

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

gen_data/gen-suite-matrix.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import glob
3+
import os
34

45
SUITES_DIR="./suites/*"
56

@@ -17,9 +18,11 @@ def generate_matrix_json() -> str:
1718
for variantPath in glob.iglob(f"{SUITES_DIR}/*", recursive=False):
1819
suiteName = variantPath.split('/')[2]
1920
variantName = variantPath.split('/')[3]
20-
21-
element = { }
22-
21+
22+
if os.path.exists(f"{variantPath}/.no-matrix-build"):
23+
continue
24+
25+
element = { }
2326
element['suite'] = suiteName
2427
element['variant'] = variantName
2528
element['architecture'] = arch

suites/focal/raw/.no-matrix-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prevents this distro from building in github actions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prevents this distro from building in github actions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prevents this distro from building in github actions

0 commit comments

Comments
 (0)