@@ -194,18 +194,31 @@ jobs:
194194 - name : Download Rust CLI binaries
195195 uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
196196 with :
197- path : .
197+ path : rust-cli-artifacts
198198 pattern : vite-global-cli-*
199- merge-multiple : true
200199
201- - name : Verify Rust CLI binaries
200+ - name : Move Rust CLI binaries to target directories
202201 run : |
202+ # Move each artifact's binary to the correct target directory
203+ for artifact_dir in rust-cli-artifacts/vite-global-cli-*/; do
204+ if [ -d "$artifact_dir" ]; then
205+ # Extract target name from directory (e.g., vite-global-cli-x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
206+ dir_name=$(basename "$artifact_dir")
207+ target_name=${dir_name#vite-global-cli-}
208+ # Create target directory and copy binary
209+ mkdir -p "target/${target_name}/release"
210+ cp -r "$artifact_dir"* "target/${target_name}/release/"
211+ fi
212+ done
203213 # Show what we have (fail if no binaries found)
204- vp_files=$(find target -name "vp*" -type f)
214+ vp_files=$(find target -name "vp*" -type f 2>/dev/null || echo "" )
205215 if [ -z "$vp_files" ]; then
206216 echo "Error: No vp binaries found in target directory"
217+ echo "Artifact contents:"
218+ find rust-cli-artifacts -type f || true
207219 exit 1
208220 fi
221+ echo "Found binaries:"
209222 echo "$vp_files"
210223
211224 - name : Set npm packages version
0 commit comments