File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,18 +194,27 @@ 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 contents to the correct target directory
203+ for artifact_dir in rust-cli-artifacts/vite-global-cli-*/; do
204+ if [ -d "$artifact_dir" ]; then
205+ # Copy the target directory structure
206+ cp -r "$artifact_dir"target/* target/ 2>/dev/null || true
207+ fi
208+ done
203209 # Show what we have (fail if no binaries found)
204- vp_files=$(find target -name "vp*" -type f)
210+ vp_files=$(find target -name "vp*" -type f 2>/dev/null || echo "" )
205211 if [ -z "$vp_files" ]; then
206212 echo "Error: No vp binaries found in target directory"
213+ echo "Artifact contents:"
214+ find rust-cli-artifacts -type f || true
207215 exit 1
208216 fi
217+ echo "Found binaries:"
209218 echo "$vp_files"
210219
211220 - name : Set npm packages version
You can’t perform that action at this time.
0 commit comments