Add artifact upload and improve apt-cacher-ng statistics
Some checks failed
Build libfuse / Build and Test (push) Failing after 1s

- Add upload-artifacts step to make packages downloadable from Forgejo
- Fix apt-cacher-ng statistics check to use correct port (3142 instead of 3143)
- Check both 192.168.1.101:3142 and localhost:3142 for statistics
- Add better messaging when apt-cacher-ng stats are not available

This completes the CI/CD pipeline with downloadable artifacts!
This commit is contained in:
robojerk 2025-09-07 18:46:45 -07:00
parent aa6e6d3e27
commit 75f88d1646

View file

@ -238,14 +238,24 @@ jobs:
echo "❌ Package not found!"
exit 1
fi
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libfuse3-package
path: artifacts/
retention-days: 30
- name: Show apt-cacher statistics
run: |
echo "=== Apt-Cacher-NG Statistics ==="
if curl -s http://localhost:3143/acng-report.html 2>/dev/null | grep -E "(Hits|Misses|Bytes|Files)"; then
echo "Cache statistics retrieved successfully"
# Check both possible ports for apt-cacher-ng
if curl -s http://192.168.1.101:3142/acng-report.html 2>/dev/null | grep -E "(Hits|Misses|Bytes|Files)"; then
echo "Cache statistics retrieved successfully from 192.168.1.101:3142"
elif curl -s http://localhost:3142/acng-report.html 2>/dev/null | grep -E "(Hits|Misses|Bytes|Files)"; then
echo "Cache statistics retrieved successfully from localhost:3142"
else
echo "Apt-cacher-ng not available or no statistics found"
echo "Apt-cacher-ng statistics not available (this is normal if using direct Debian mirrors)"
fi
- name: Final summary