From aa6e6d3e27337eccf711e4887aa201852067ba4e Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 7 Sep 2025 18:43:35 -0700 Subject: [PATCH] Fix artifacts preparation - correct package file path - Update artifacts step to look for package in correct location - Add debugging to find where package file is actually located - Fix dpkg -I command to use full path to package file - The package is created in /workspace/particle-os/libfuse/fuse-3.10.0/ - But artifacts step was looking in current directory This should fix the 'Package not found!' error in artifacts preparation. --- .forgejo/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 1441c2e..23083e2 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -205,9 +205,16 @@ jobs: echo "Preparing artifacts for download..." mkdir -p artifacts - # Copy the built package - if [ -f libfuse3-3_3.10.0-1_amd64.deb ]; then - cp libfuse3-3_3.10.0-1_amd64.deb artifacts/ + # Debug: Check where the package file is located + echo "Looking for package file..." + find /workspace -name "libfuse3-3_3.10.0-1_amd64.deb" 2>/dev/null || echo "Package file not found" + echo "Current directory: $(pwd)" + echo "Contents of /workspace/particle-os/libfuse/fuse-3.10.0/:" + ls -la /workspace/particle-os/libfuse/fuse-3.10.0/ || echo "Directory not found" + + # Copy the built package from the correct location + if [ -f /workspace/particle-os/libfuse/fuse-3.10.0/libfuse3-3_3.10.0-1_amd64.deb ]; then + cp /workspace/particle-os/libfuse/fuse-3.10.0/libfuse3-3_3.10.0-1_amd64.deb artifacts/ echo "✅ Package copied to artifacts directory" ls -la artifacts/ @@ -222,7 +229,7 @@ jobs: echo "- **Commit**: $(git rev-parse --short HEAD 2>/dev/null || echo 'Unknown')" >> artifacts/BUILD_INFO.md echo "" >> artifacts/BUILD_INFO.md echo "## Package Details" >> artifacts/BUILD_INFO.md - dpkg -I libfuse3-3_3.10.0-1_amd64.deb >> artifacts/BUILD_INFO.md + dpkg -I /workspace/particle-os/libfuse/fuse-3.10.0/libfuse3-3_3.10.0-1_amd64.deb >> artifacts/BUILD_INFO.md # Create archive for easy download tar -czf libfuse3-3-build-$(date +%Y%m%d-%H%M%S).tar.gz artifacts/