Fix YAML linting issues and update system requirements to Debian 13+

- Fix trailing spaces and blank lines in Forgejo workflows
- Update system requirements from Ubuntu Jammy/Bookworm to Debian 13+ (Trixie)
- Update test treefile to use Debian Trixie instead of Ubuntu Jammy
- Update documentation to reflect modern system requirements
- Fix yamllint errors for CI/CD functionality
- Ensure compatibility with modern OSTree and libapt versions
This commit is contained in:
robojerk 2025-08-18 11:39:58 -07:00
parent ec0da91864
commit 3dec23f8f7
85 changed files with 12569 additions and 1088 deletions

View file

@ -26,9 +26,17 @@ jobs:
echo "Testing secret priority:"
echo "TEST_SECRET value: ${{ secrets.TEST_SECRET }}"
echo "User level: apple"
echo "Org level: pear"
echo "Org level: pear"
echo "Repo level: pumpkin"
echo ""
echo "Available environment variables:"
echo "GITEA_RUN_NUMBER: ${GITEA_RUN_NUMBER:-'NOT_SET'}"
echo "ACTIONS_RUN_NUMBER: ${ACTIONS_RUN_NUMBER:-'NOT_SET'}"
echo "GITHUB_RUN_NUMBER: ${GITHUB_RUN_NUMBER:-'NOT_SET'}"
echo "RUNNER_OS: ${RUNNER_OS:-'NOT_SET'}"
echo "GITEA_ACTOR: ${GITEA_ACTOR:-'NOT_SET'}"
- name: Setup environment
run: |
# Try apt-cacher-ng first, fallback to Debian's automatic mirror selection
@ -97,7 +105,7 @@ jobs:
echo "✅ Now using clean stable Rust:"
rustc --version
cargo --version
# Clear cargo cache to avoid corruption
echo "🧹 Clearing cargo cache..."
cargo clean
@ -115,8 +123,8 @@ jobs:
echo "Building Debian package..."
# Get build information for versioning
# Forgejo/Gitea Actions uses ACTIONS_RUN_NUMBER, fallback to timestamp
BUILD_NUMBER="${ACTIONS_RUN_NUMBER:-$(date +%s)}"
# Forgejo/Gitea Actions uses GITEA_RUN_NUMBER, fallback to timestamp
BUILD_NUMBER="${GITEA_RUN_NUMBER:-$(date +%s)}"
COMMIT_HASH=$(git rev-parse HEAD 2>/dev/null || echo "unknown")
BUILD_VERSION="0.1.0+build${BUILD_NUMBER}.${COMMIT_HASH}"
@ -417,8 +425,6 @@ jobs:
done
fi
echo "" >> ARTIFACTS_README.md
echo "## 📋 What's Included" >> ARTIFACTS_README.md
echo "" >> ARTIFACTS_README.md
@ -464,8 +470,8 @@ jobs:
fi
# Get build info for registry
# Forgejo/Gitea Actions uses ACTIONS_RUN_NUMBER, fallback to timestamp
BUILD_NUMBER="${ACTIONS_RUN_NUMBER:-$(date +%s)}"
# Forgejo/Gitea Actions uses GITEA_RUN_NUMBER, fallback to timestamp
BUILD_NUMBER="${GITEA_RUN_NUMBER:-$(date +%s)}"
COMMIT_HASH=$(git rev-parse HEAD 2>/dev/null || echo "unknown")
echo "Publishing packages for build $BUILD_NUMBER (commit $COMMIT_HASH)"
@ -791,5 +797,4 @@ jobs:
echo "- **Build Scripts**: Automated package building and testing" >> STATUS_REPORT.md
echo "Status report created: STATUS_REPORT.md"
echo "✅ All CI jobs completed successfully!"
echo "✅ All CI jobs completed successfully!"

View file

@ -22,10 +22,10 @@ jobs:
echo 'Acquire::GzipIndexes "true";' >> /etc/apt/apt.conf.d/99translations
echo 'Acquire::CompressionTypes::Order:: "gz";' >> /etc/apt/apt.conf.d/99translations
echo 'Dpkg::Use-Pty "0";' >> /etc/apt/apt.conf.d/99translations
# Update package lists
apt update -y
# Install essential build tools (optimized order)
apt install -y --no-install-recommends \
git curl pkg-config build-essential gnupg wget \
@ -69,7 +69,7 @@ jobs:
# Build ID: $WORKFLOW_RUN_ID
# Download the .deb files and run:
sudo dpkg -i apt-ostree_0.1.0-1_amd64.deb
sudo apt-get install -f # Install any missing dependencies
sudo apt-get install -f # Install missing dependencies
\`\`\`
### Verification
@ -97,56 +97,3 @@ jobs:
\`\`\`
---
" > download-section.md
# Replace the existing download section in README.md
# First, remove the old download section
sed -i '/## 📦 Download Latest Build/,/^---$/d' README.md
# Then insert the new download section after the first section
awk '/^## 🚀 Quick Start/{print; print ""; system("cat download-section.md"); next} 1' README.md > README.md.tmp
mv README.md.tmp README.md
echo "README updated with download links for workflow run $WORKFLOW_RUN_ID"
- name: Commit and push changes
run: |
# Configure git
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
# Add and commit changes
git add README.md
git commit -m "Update README with download links for build $(date +%s)"
# Push changes
git push origin main
- name: Create update summary
run: |
echo "Creating update summary..."
# Create a summary markdown file
echo "
# README Update Summary
## Update Information
- **Update Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Triggered by**: Build workflow $(date +%s)
- **Status**: ✅ SUCCESS
## Changes Made
- Updated download section with latest build links
- Updated target platform from Ubuntu Noble to Debian Stable
- Updated build ID reference
- Maintained all existing functionality
## Next Steps
- README has been automatically updated
- Changes have been committed and pushed to main branch
- Users can now access the latest build information
" > UPDATE_SUMMARY.md
echo "Update summary created: UPDATE_SUMMARY.md"
echo "README update completed successfully! 🎉"