Skip to content

Commit 041f75c

Browse files
authored
ci: clickable model links in release table + exclude ccache-binary from assets (WildKernels#233)
* ci: make model names clickable links in release notes table Each model cell now links directly to its zip asset via the standard GitHub release download URL (OWNER/REPO/releases/download/TAG/FILE.zip). Tag is resolved from $NEW_TAG set in the preceding step. * ci: exclude ccache-binary from release assets Remove ccache-binary.zip from downloaded-artifacts before processing, since skip-decompress wraps it as a .zip and it would otherwise be picked up by the *.zip glob in the device table and asset upload.
1 parent 8b3477f commit 041f75c

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,9 @@ jobs:
887887
run: |
888888
echo "=== Start building the release notes ==="
889889
890+
# Remove ccache-binary artifacts
891+
rm -f ./downloaded-artifacts/ccache-binary.zip
892+
890893
# Collect build metadata
891894
declare -A device_info
892895
@@ -908,7 +911,7 @@ jobs:
908911
susfs_ver="none"
909912
fi
910913
full_model="${model}_${os_version}_${kernel_version}"
911-
device_info["$full_model"]="$model|$os_version|$kernel_version|$ksu_type|$ksu_ver|$susfs_ver"
914+
device_info["$full_model"]="$model|$os_version|$kernel_version|$ksu_type|$ksu_ver|$susfs_ver|$zipname"
912915
fi
913916
done
914917
@@ -948,7 +951,7 @@ jobs:
948951
EOF
949952
950953
for full_key in $(printf '%s\n' "${!device_info[@]}" | sort); do
951-
IFS='|' read -r model os_ver kernel_ver _ _ _ <<< "${device_info[$full_key]}"
954+
IFS='|' read -r model os_ver kernel_ver _ _ _ zipfile <<< "${device_info[$full_key]}"
952955
953956
# Use jq to extract feature flags for this model from the JSON matrix.
954957
# Reconstruct the original model name (e.g. OP13r-6.1.118) in case the ZIP
@@ -1004,8 +1007,10 @@ jobs:
10041007
fi
10051008
fi
10061009
1007-
printf "| %-13s | %-10s | %-16s | %-48s |\n" \
1008-
"$model" "$os_ver" "$kernel_ver" "$features_str" >> release_notes.md
1010+
download_url="https://github.com/${REPO_OWNER}/${REPO_NAME}/releases/download/${NEW_TAG}/${zipfile}.zip"
1011+
model_link="[$model]($download_url)"
1012+
printf "| %s | %-10s | %-16s | %-48s |\n" \
1013+
"$model_link" "$os_ver" "$kernel_ver" "$features_str" >> release_notes.md
10091014
done
10101015
10111016
if [ ${#device_info[@]} -gt 0 ]; then

0 commit comments

Comments
 (0)