Skip to content

Commit 40f5ab4

Browse files
Merge pull request #26 from ThatMG393/main
Fix build when `all` architecture is used
2 parents 47502e8 + 5b5fbd8 commit 40f5ab4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/build-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/upload-artifact@v3
5151
with:
5252
name: ${{ matrix.suite }}-${{ matrix.architecture }}-tarballs
53-
path: fs-cook/out/${{ matrix.suite }}-${{ matrix.variant }}-${{ matrix.architecture }}.tar.gz
53+
path: fs-cook/out/${{ matrix.suite }}-${{ matrix.variant }}-**.tar.gz
5454

5555
create-release:
5656
runs-on: ubuntu-latest

gen_data/gen-suite-matrix.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
SUITES_DIR="./suites/*"
55

6-
# ARCHITECTURE CAN BE: all, amd64, arm64, armhf
6+
# ARCHITECTURE CAN BE: amd64, arm64, armhf
77
# it has high priority over the architecture specified in the suite
88
# set it to "all" to build all architectures defined in the <suite>/<varient>.sh file
9-
ARCHITECTURES = [ "all" ]
9+
# "all" is currently broken!
10+
ARCHITECTURES = [ "all" ] #, "arm64", "armhf" ]
1011

11-
def generate_matrix_json() -> None:
12+
# Can be moved to utils?
13+
def generate_matrix_json() -> str:
1214
json_data = { "include": [ ] }
1315

1416
for arch in ARCHITECTURES:
@@ -24,7 +26,7 @@ def generate_matrix_json() -> None:
2426

2527
json_data['include'].append(element)
2628

27-
print(json.dumps(json_data, sort_keys=True, indent=None, separators=(',', ':')))
29+
return json.dumps(json_data, indent=None)
2830

2931
if __name__ == '__main__':
30-
generate_matrix_json()
32+
print(generate_matrix_json())

0 commit comments

Comments
 (0)