@@ -275,18 +275,75 @@ jobs:
275275 uses : actions/checkout@v3
276276
277277 - name : Download Artifacts
278+ id : download-artifacts
278279 uses : actions/download-artifact@v4
280+ continue-on-error : true
279281 with :
280282 pattern : dist-artifacts-*
281283 merge-archive : true
282284 path : .
285+ if-no-files-found : warn
286+
287+ - name : Debug - Check What Was Downloaded
288+ run : |
289+ echo "=== Immediately after download ==="
290+ echo "Current directory:"
291+ pwd
292+ echo ""
293+ echo "Contents of current directory:"
294+ ls -la
295+ echo ""
296+ echo "Checking for dist directory:"
297+ if [ -d "dist" ]; then
298+ echo "✓ dist directory exists"
299+ echo "Contents of dist:"
300+ ls -la dist/ || true
301+ if [ -d "dist/binaries" ]; then
302+ echo "✓ dist/binaries exists"
303+ echo "Contents of dist/binaries:"
304+ ls -la dist/binaries/ || true
305+ else
306+ echo "✗ dist/binaries does not exist"
307+ fi
308+ else
309+ echo "✗ dist directory does not exist"
310+ fi
283311
284312 - name : Verify Artifacts Downloaded
285313 run : |
314+ echo "=== Checking for dist directory ==="
286315 if [ ! -d "dist" ]; then
287- echo "Error: dist directory not found after downloading artifacts"
316+ echo "ERROR: dist directory not found after downloading artifacts"
317+ echo ""
318+ echo "This could mean:"
319+ echo "1. The dependent jobs didn't create artifacts"
320+ echo "2. The artifacts are empty"
321+ echo "3. The artifact download failed"
322+ echo ""
323+ echo "Expected artifacts from these jobs:"
324+ echo " - darwin-amd64"
325+ echo " - darwin-arm64"
326+ echo " - windows-amd64"
327+ echo " - windows-arm64"
328+ echo " - linux-amd64"
329+ echo " - linux-arm64"
330+ echo " - build-webapp"
331+ echo " - build-rust-binaries-darwin"
332+ echo " - build-rust-binaries-linux"
333+ echo ""
334+ echo "Checking what was actually downloaded..."
335+ ls -la || true
336+ echo ""
337+ echo "Checking if any artifacts exist..."
338+ find . -type d -name "dist*" 2>/dev/null || echo "No dist directories found"
339+ echo ""
340+ echo "Checking download step status..."
341+ if [ "${{ steps.download-artifacts.outcome }}" != "success" ]; then
342+ echo "WARNING: Download step did not succeed"
343+ fi
288344 exit 1
289345 fi
346+ echo "✓ dist directory found"
290347 echo "Artifacts downloaded successfully"
291348
292349 - name : Debug - List Downloaded Artifacts
0 commit comments