Skip to content

Commit 49ced88

Browse files
author
Claude
committed
Improve release artifact naming for all platforms
Changed naming format from libasyncprocess-{arch}-{OS}.a to libasyncprocess.{os}.{arch}.a for better consistency: - libasyncprocess.darwin.aarch64.a - libasyncprocess.darwin.x86_64.a - libasyncprocess.linux.aarch64.a - libasyncprocess.linux.x86_64.a Also added verbose logging to the release preparation step to show: - All found .a files in artifacts - Each file being copied and its destination - Final list of release files This ensures all 4 platform binaries are uniquely named and uploaded.
1 parent 795dd05 commit 49ced88

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,25 @@ jobs:
200200
- name: Prepare release files
201201
run: |
202202
mkdir -p release-files
203+
echo "Finding all .a files in artifacts..."
204+
find artifacts -name "*.a" -type f
205+
echo ""
206+
echo "Creating uniquely named release files..."
203207
# Find and rename all library files with their arch and os
204208
find artifacts -name "*.a" -type f | while read file; do
205209
# Extract the directory structure to get arch and os
206210
dir=$(dirname "$file")
207211
arch=$(basename "$(dirname "$dir")")
208212
os=$(basename "$dir")
209-
# Create a unique filename
210-
cp "$file" "release-files/libasyncprocess-${arch}-${os}.a"
213+
# Normalize OS name to lowercase for consistency
214+
os_lower=$(echo "$os" | tr '[:upper:]' '[:lower:]')
215+
# Create a unique filename: libasyncprocess.{os}.{arch}.a
216+
output_name="libasyncprocess.${os_lower}.${arch}.a"
217+
echo " $file -> release-files/$output_name"
218+
cp "$file" "release-files/$output_name"
211219
done
212-
# List what we're uploading
213-
echo "Release files:"
220+
echo ""
221+
echo "Release files ready for upload:"
214222
ls -lh release-files/
215223
216224
- name: Create Release

0 commit comments

Comments
 (0)