Skip to content

Commit 39c350c

Browse files
Fix fpga-releaser to work with new matrix build paths and archives
1 parent a5d5add commit 39c350c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
echo "Build output: $OUTPUT"
196196
echo "Output directory: $OUTPUT_DIR"
197197
echo "output_dir=$OUTPUT_DIR" >> "$GITHUB_OUTPUT"
198-
TARGET_NAME=$(echo "${{ matrix.target }}" | sed 's|.*:||')
198+
TARGET_NAME=$(echo "${{ matrix.target }}" | sed 's|.*:||' | tr '_' '-')
199199
echo "artifact_name=${TARGET_NAME}-image" >> "$GITHUB_OUTPUT"
200200
201201
- name: Upload artifact
@@ -246,7 +246,7 @@ jobs:
246246
echo "Build output: $OUTPUT"
247247
echo "Output directory: $OUTPUT_DIR"
248248
echo "output_dir=$OUTPUT_DIR" >> "$GITHUB_OUTPUT"
249-
TARGET_NAME=$(echo "${{ matrix.target }}" | sed 's|.*:||')
249+
TARGET_NAME=$(echo "${{ matrix.target }}" | sed 's|.*:||' | tr '_' '-')
250250
echo "artifact_name=${TARGET_NAME}-image" >> "$GITHUB_OUTPUT"
251251
252252
- name: Upload artifact
@@ -297,7 +297,7 @@ jobs:
297297
echo "Build output: $OUTPUT"
298298
echo "Output directory: $OUTPUT_DIR"
299299
echo "output_dir=$OUTPUT_DIR" >> "$GITHUB_OUTPUT"
300-
TARGET_NAME=$(echo "${{ matrix.target }}" | sed 's|.*:||')
300+
TARGET_NAME=$(echo "${{ matrix.target }}" | sed 's|.*:||' | tr '_' '-')
301301
echo "artifact_name=${TARGET_NAME}-image" >> "$GITHUB_OUTPUT"
302302
303303
- name: Upload artifact

tools/fpga_releaser/archive_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_relevant_files_from_buck_zip(fpga_name, zip):
1515
continue
1616
if item.filename.endswith(".bz2"):
1717
zip_names.append(item.filename)
18-
if "/maps/" in item.filename and (item.filename.endswith(".json") or item.filename.endswith(".html")):
18+
if "maps/" in item.filename and (item.filename.endswith(".json") or item.filename.endswith(".html")):
1919
zip_names.append(item.filename)
2020
if item.filename.endswith("nextpnr.log"):
2121
zip_names.append(item.filename)

0 commit comments

Comments
 (0)