From 75f88d16462744e9712b6ece8b265f03cbf45b3b Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 7 Sep 2025 18:46:45 -0700 Subject: [PATCH] Add artifact upload and improve apt-cacher-ng statistics - 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! --- .forgejo/workflows/ci.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 23083e2..3f9c889 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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