Skip to content

Commit e0ccdb5

Browse files
authored
Update dbg assets to upload zip (#337)
Changed dbg symbol asset collection to generate architecture-specific zip files, since the filenames were colliding with attempting to create the GH release. cc: @bpronan
1 parent b6f1dbb commit e0ccdb5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ jobs:
8989
mv hf_xet-${WHEEL_VERSION}/hf_xet/hf_xet.abi3.so.dbg ../hf_xet/dbg/hf_xet.abi3.so.dbg
9090
wheel pack hf_xet-${WHEEL_VERSION}
9191
rm -rf hf_xet-${WHEEL_VERSION}
92+
zip -r hf_xet.abi3.so.dbg.linux-${{ matrix.platform.target }}.zip ../hf_xet/dbg/hf_xet.abi3.so.dbg
93+
rm ../hf_xet/dbg/hf_xet.abi3.so.dbg
94+
mv hf_xet.abi3.so.dbg.linux-${{ matrix.platform.target }}.zip ../hf_xet/dbg/
9295
- name: Upload debug symbols
9396
uses: actions/upload-artifact@v4
9497
with:
@@ -158,6 +161,9 @@ jobs:
158161
mv hf_xet-${WHEEL_VERSION}/hf_xet/hf_xet.abi3.so.dbg ../hf_xet/dbg/hf_xet.abi3.so.dbg
159162
wheel pack hf_xet-${WHEEL_VERSION}
160163
rm -rf hf_xet-${WHEEL_VERSION}
164+
zip -r hf_xet.abi3.so.dbg.musllinux-${{ matrix.platform.target }}.zip ../hf_xet/dbg/hf_xet.abi3.so.dbg
165+
rm ../hf_xet/dbg/hf_xet.abi3.so.dbg
166+
mv hf_xet.abi3.so.dbg.musllinux-${{ matrix.platform.target }}.zip ../hf_xet/dbg/
161167
- name: Upload debug symbols
162168
uses: actions/upload-artifact@v4
163169
with:
@@ -202,7 +208,8 @@ jobs:
202208
shell: bash
203209
run: |
204210
mkdir hf_xet/dbg
205-
cp hf_xet/target/${{ matrix.platform.rust_target }}/release/hf_xet.pdb hf_xet/dbg/
211+
zip -r hf_xet.pdb.windows-${{ matrix.platform.target }}.zip hf_xet/target/${{ matrix.platform.rust_target }}/release/hf_xet.pdb
212+
cp hf_xet.pdb.windows-${{ matrix.platform.target }}.zip hf_xet/dbg/
206213
- name: Upload debug symbols
207214
uses: actions/upload-artifact@v4
208215
with:
@@ -250,8 +257,8 @@ jobs:
250257
mkdir hf_xet/dbg
251258
pushd hf_xet/target/${{ matrix.platform.rust_target}}/release-dbgsymbols/deps
252259
sed -i '' "s/binary-path:.*/binary-path: '.\/hf_xet.abi3.so'/" libhf_xet.dylib.dSYM/Contents/Resources/Relocations/${TARGET}/libhf_xet.dylib.yml
253-
zip -r libhf_xet.dylib.dSYM.zip libhf_xet.dylib.dSYM
254-
cp libhf_xet.dylib.dSYM.zip ../../../../dbg/
260+
zip -r libhf_xet.dylib.dSYM.macos-${TARGET}.zip libhf_xet.dylib.dSYM
261+
cp libhf_xet.dylib.dSYM.macos-${TARGET}.zip ../../../../dbg/
255262
- name: Upload debug symbols
256263
uses: actions/upload-artifact@v4
257264
with:

0 commit comments

Comments
 (0)