@@ -36,19 +36,19 @@ jobs:
3636 matrix :
3737 include :
3838 # macOS ARM64 (native)
39- - { target: aarch64-apple-darwin, os: macos-15 }
39+ - { target: aarch64-apple-darwin, os: macos-15, pretty_target: macos-aarch64 }
4040
4141 # macOS x86-64 (native)
42- - { target: x86_64-apple-darwin, os: macos-15-intel }
42+ - { target: x86_64-apple-darwin, os: macos-15-intel, pretty_target: macos-x86_64 }
4343
4444 # Windows x86-64 (native)
45- - { target: x86_64-pc-windows-msvc, os: windows-2025 }
45+ - { target: x86_64-pc-windows-msvc, os: windows-2025, pretty_target: windows-x86_64 }
4646
4747 # Linux x86-64 (native - musl static binary)
48- - { target: x86_64-unknown-linux-musl, os: ubuntu-24.04 }
48+ - { target: x86_64-unknown-linux-musl, os: ubuntu-24.04, pretty_target: linux-x86_64-musl }
4949
5050 # Linux ARM64 (native - musl static binary)
51- - { target: aarch64-unknown-linux-musl, os: ubuntu-24.04-arm }
51+ - { target: aarch64-unknown-linux-musl, os: ubuntu-24.04-arm, pretty_target: linux-aarch64-musl }
5252
5353 steps :
5454 - uses : actions/checkout@v4
@@ -81,14 +81,14 @@ jobs:
8181 # Determine archive format based on platform
8282 case ${{ matrix.target }} in
8383 *-pc-windows-*)
84- # Windows: create .zip archive with just the binary name
85- ARCHIVE_NAME="${NAME}-${{ matrix.target }}.zip"
84+ # Windows: create .zip archive with pretty name
85+ ARCHIVE_NAME="${NAME}-${{ matrix.pretty_target }}.zip"
8686 7z a "${ARCHIVE_NAME}" "./${BIN_PATH}"
8787 7z rn "${ARCHIVE_NAME}" "target/${{ matrix.target }}/release/${BIN_NAME}" "${BIN_NAME}"
8888 ;;
8989 *)
90- # Linux/macOS: create .tar.gz archive
91- ARCHIVE_NAME="${NAME}-${{ matrix.target }}.tar.gz"
90+ # Linux/macOS: create .tar.gz archive with pretty name
91+ ARCHIVE_NAME="${NAME}-${{ matrix.pretty_target }}.tar.gz"
9292 tar czf "${ARCHIVE_NAME}" -C "target/${{ matrix.target }}/release" "${BIN_NAME}"
9393 ;;
9494 esac
@@ -114,13 +114,13 @@ jobs:
114114 matrix :
115115 include :
116116 # Linux x86-64 (zigbuild - glibc 2.28)
117- - { target: x86_64-unknown-linux-gnu, os: ubuntu-24.04, zigtargetsuffix: .2.28 }
117+ - { target: x86_64-unknown-linux-gnu, os: ubuntu-24.04, zigtargetsuffix: .2.28, pretty_target: linux-x86_64-gnu }
118118
119119 # Linux ARM64 (zigbuild - glibc 2.28)
120- - { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm, zigtargetsuffix: .2.28 }
120+ - { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm, zigtargetsuffix: .2.28, pretty_target: linux-aarch64-gnu }
121121
122122 # FreeBSD x86-64 (zigbuild)
123- - { target: x86_64-unknown-freebsd, os: ubuntu-24.04, zigtargetsuffix: "" }
123+ - { target: x86_64-unknown-freebsd, os: ubuntu-24.04, zigtargetsuffix: "", pretty_target: freebsd-x86_64 }
124124
125125 steps :
126126 - uses : actions/checkout@v4
@@ -149,8 +149,8 @@ jobs:
149149 BIN_PATH="target/${{ matrix.target }}/release/${NAME}"
150150 BIN_NAME="${NAME}"
151151
152- # Archive name uses base target without libc version
153- ARCHIVE_NAME="${NAME}-${{ matrix.target }}.tar.gz"
152+ # Archive name uses pretty target name
153+ ARCHIVE_NAME="${NAME}-${{ matrix.pretty_target }}.tar.gz"
154154 tar czf "${ARCHIVE_NAME}" -C "target/${{ matrix.target }}/release" "${BIN_NAME}"
155155
156156 echo "ARCHIVE_NAME=${ARCHIVE_NAME}" >> $GITHUB_OUTPUT
@@ -339,15 +339,15 @@ jobs:
339339 SHA256_SOURCE=$(sha256sum "/tmp/celq-source.tar.gz" | awk '{print $1}')
340340 echo "Source SHA256: $SHA256_SOURCE"
341341
342- # Download and calculate SHA256 for ARM64 macOS binary
343- ARM64_URL="https://github.com/${{ github.repository }}/releases/download/${VERSION}/celq-aarch64-apple-darwin .tar.gz"
342+ # Download and calculate SHA256 for ARM64 macOS binary (using pretty name)
343+ ARM64_URL="https://github.com/${{ github.repository }}/releases/download/${VERSION}/celq-macos-aarch64 .tar.gz"
344344 echo "Downloading ARM64 binary from: $ARM64_URL"
345345 curl -sL "$ARM64_URL" -o "/tmp/celq-arm64.tar.gz"
346346 SHA256_ARM64=$(sha256sum "/tmp/celq-arm64.tar.gz" | awk '{print $1}')
347347 echo "ARM64 SHA256: $SHA256_ARM64"
348348
349- # Download and calculate SHA256 for x86_64 macOS binary
350- X86_64_URL="https://github.com/${{ github.repository }}/releases/download/${VERSION}/celq-x86_64-apple-darwin .tar.gz"
349+ # Download and calculate SHA256 for x86_64 macOS binary (using pretty name)
350+ X86_64_URL="https://github.com/${{ github.repository }}/releases/download/${VERSION}/celq-macos-x86_64 .tar.gz"
351351 echo "Downloading x86_64 binary from: $X86_64_URL"
352352 curl -sL "$X86_64_URL" -o "/tmp/celq-x86_64.tar.gz"
353353 SHA256_X86_64=$(sha256sum "/tmp/celq-x86_64.tar.gz" | awk '{print $1}')
@@ -418,14 +418,14 @@ jobs:
418418 run : |
419419 VERSION="${{ github.ref_name }}"
420420
421- # Download the Windows binary zip
422- ZIP_URL="https://github.com/${{ github.repository }}/releases/download/${VERSION}/celq-x86_64-pc- windows-msvc .zip"
421+ # Download the Windows binary zip (using pretty name)
422+ ZIP_URL="https://github.com/${{ github.repository }}/releases/download/${VERSION}/celq-windows-x86_64 .zip"
423423
424424 echo "Downloading Windows binary from: $ZIP_URL"
425- curl -sL "$ZIP_URL" -o "/tmp/celq-x86_64-pc- windows-msvc .zip"
425+ curl -sL "$ZIP_URL" -o "/tmp/celq-windows-x86_64 .zip"
426426
427427 # Calculate SHA256
428- SHA256=$(sha256sum "/tmp/celq-x86_64-pc- windows-msvc .zip" | awk '{print $1}')
428+ SHA256=$(sha256sum "/tmp/celq-windows-x86_64 .zip" | awk '{print $1}')
429429 echo "Calculated SHA256: $SHA256"
430430
431431 # Export for next step
0 commit comments