Add artifact upload and improve apt-cacher-ng statistics
Some checks failed
Build libfuse / Build and Test (push) Failing after 1s
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:
parent
aa6e6d3e27
commit
75f88d1646
1 changed files with 13 additions and 3 deletions
|
|
@ -239,13 +239,23 @@ jobs:
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue