Skip to content

Commit f4f11e5

Browse files
committed
Normalize arch names in releases
1 parent 6573e1b commit f4f11e5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ jobs:
9494
release_name: ${{ github.ref }}
9595
prerelease: true
9696

97+
- name: Normalize arch names to x64 or arm64
98+
run: |
99+
find . -maxdepth 2 -type f -name "*" | while read -r file; do
100+
filename=$(basename "$file")
101+
newname=$(echo "$filename" | sed -e 's/amd64/x64/g' -e 's/x86_64/x64/g' -e 's/aarch64/arm64/g')
102+
if [ "$filename" != "$newname" ]; then
103+
mv -v "$file" "$newname"
104+
fi
105+
done
106+
97107
- name: Upload Release Assets
98108
id: upload-release-assets
99109
uses: dwenegar/upload-release-assets@v1

0 commit comments

Comments
 (0)