diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml deleted file mode 100644 index fb04bb90..00000000 --- a/.forgejo/workflows/build.yml +++ /dev/null @@ -1,267 +0,0 @@ -name: Build apt-ostree Package - -# ⚠️ IMPORTANT: Each repository needs its own FORGEJO_TOKEN secret! -# -# To set up this workflow in a new repository: -# 1. Go to repository settings: https://git.raines.xyz/OWNER/REPO/settings -# 2. Find "Secrets" or "Repository secrets" section -# 3. Add new secret: -# - Name: FORGEJO_TOKEN -# - Value: Your Personal Access Token with repo and write:packages permissions -# 4. The token needs these scopes: -# - repo (Full control of private repositories) -# - write:packages (Write packages) -# - read:packages (Read packages) -# -# This workflow will fail with "FORGEJO_TOKEN is not set" if the secret is missing. - -on: - push: - branches: [ main, master ] - pull_request: - branches: [ main, master ] - workflow_dispatch: - -env: - DEBIAN_VERSION: "stable" - APT_OSTREE_VERSION: "0.1.0" - -jobs: - build-apt-ostree: - name: Build apt-ostree Package - runs-on: ubuntu-latest - container: - image: debian:latest - steps: - - name: Setup build environment - shell: bash - run: | - # APT Performance Optimizations (2-3x faster) - echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/99translations - 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 \ - rustc cargo libapt-pkg-dev libapt-pkg7.0 \ - libostree-dev - - # Verify Rust version (much faster than rustup) - rustc --version - cargo --version - - # Check if apt-cacher-ng is available and configure sources accordingly - echo "Checking for apt-cacher-ng availability..." - if curl -s --connect-timeout 5 http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then - echo "✅ apt-cacher-ng is available, configuring proxy sources..." - # Configure apt-cacher-ng proxy sources - echo "deb http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free" > /etc/apt/sources.list.d/apt-cacher-ng.list - echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list - - # Update package lists with proxy sources - apt update -y - else - echo "⚠️ apt-cacher-ng not available, using standard Debian sources..." - # Use standard Debian sources - echo "deb http://deb.debian.org/debian stable main contrib non-free" > /etc/apt/sources.list.d/standard.list - echo "deb-src http://deb.debian.org/debian stable main contrib non-free" >> /etc/apt/sources.list.d/standard.list - - # Update package lists - apt update -y - fi - - - name: Checkout repository manually - run: | - # Clone the repository manually instead of using actions/checkout - git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree - cp -r /tmp/apt-ostree/* . - cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - - - name: Install additional dependencies - run: | - # Update package lists - apt update -y - - # Install additional dependencies that might be needed - apt install -y \ - libssl-dev \ - libdbus-1-dev \ - libglib2.0-dev \ - libzstd-dev \ - devscripts \ - debhelper \ - dh-cargo \ - libcurl4-gnutls-dev \ - libsystemd-dev \ - libmount-dev \ - libselinux1-dev \ - libsepol-dev \ - libarchive-dev \ - libgpgme-dev \ - libavahi-client-dev \ - libavahi-common-dev \ - libffi-dev \ - libpcre2-dev \ - libxml2-dev \ - zlib1g-dev \ - liblz4-dev \ - liblzma-dev \ - nettle-dev \ - libgmp-dev \ - libicu-dev \ - libpython3-dev \ - python3-dev \ - python3-setuptools \ - python3-wheel \ - python3-pip - - - name: Debug - List files before building - run: | - echo "Current directory: $(pwd)" - echo "Files in current directory:" - ls -la - echo "Files in src/ (if it exists):" - ls -la src/ 2>/dev/null || echo "src/ directory does not exist" - echo "Files in debian/ (if it exists):" - ls -la debian/ 2>/dev/null || echo "debian/ directory does not exist" - - - name: Build apt-ostree package - run: | - echo "Building apt-ostree package..." - - # Check if we have the necessary files - if [ -f "Cargo.toml" ] && [ -d "debian" ]; then - echo "✅ Found Cargo.toml and debian directory" - - # Build the Rust project first - echo "Building Rust project..." - cargo build --release - - # Check if build was successful - if [ -f "target/release/apt-ostree" ]; then - echo "✅ Rust build successful" - - # Build Debian package - echo "Building Debian package..." - if [ -f "debian/rules" ]; then - # Use debian/rules if it exists - dpkg-buildpackage -b -us -uc - else - # Fallback: create a simple package - echo "No debian/rules found, creating simple package..." - mkdir -p debian/apt-ostree/usr/bin - cp target/release/apt-ostree debian/apt-ostree/usr/bin/ - chmod +x debian/apt-ostree/usr/bin/apt-ostree - - # Create control file - mkdir -p debian/apt-ostree/DEBIAN - cat > debian/apt-ostree/DEBIAN/control << 'EOF' -Package: apt-ostree -Version: 0.1.0 -Architecture: amd64 -Maintainer: Robojerk -Description: APT-OSTree package for Debian-based OSTree systems - A tool for managing OSTree deployments with APT package management. - Provides atomic updates and rollback capabilities for Debian systems. -EOF - - # Build package - dpkg-deb --build debian/apt-ostree apt-ostree_0.1.0_amd64.deb - fi - - # Check if package was created - if ls *.deb >/dev/null 2>&1; then - echo "✅ Debian package created successfully" - ls -la *.deb - else - echo "❌ No Debian package found" - exit 1 - fi - else - echo "❌ Rust build failed - apt-ostree binary not found" - exit 1 - fi - else - echo "❌ Missing required files:" - [ -f "Cargo.toml" ] || echo " - Cargo.toml" - [ -d "debian" ] || echo " - debian/ directory" - exit 1 - fi - - - name: Test built package - run: | - echo "Testing built package..." - - # Find the package - DEB_PACKAGE=$(ls *.deb 2>/dev/null | head -1) - - if [ -n "$DEB_PACKAGE" ]; then - echo "✅ Found package: $DEB_PACKAGE" - - # Test package installation - echo "Testing package installation..." - dpkg -i "$DEB_PACKAGE" || echo "Installation test failed (this is normal for CI)" - - # Check if binary is accessible - if which apt-ostree >/dev/null 2>&1; then - echo "✅ apt-ostree installed successfully" - apt-ostree --version || echo "Version check failed" - else - echo "❌ apt-ostree not found in PATH" - echo "Checking installation location:" - find /usr -name "apt-ostree" 2>/dev/null || echo "Not found in /usr" - fi - else - echo "❌ No main package found to test" - fi - - - name: Create build summary - run: | - echo "Creating build summary..." - - # Create a summary markdown file - echo '# APT-OSTree Build Summary' > BUILD_SUMMARY.md - echo '' >> BUILD_SUMMARY.md - echo '## Build Information' >> BUILD_SUMMARY.md - echo '- **Build Date**: '"$(date '+%Y-%m-%d %H:%M:%S UTC')" >> BUILD_SUMMARY.md - echo '- **Build ID**: '"$(date +%s)" >> BUILD_SUMMARY.md - echo '- **Commit**: '"$(git rev-parse --short HEAD 2>/dev/null || echo "Unknown")" >> BUILD_SUMMARY.md - echo '- **Branch**: '"$(git branch --show-current 2>/dev/null || echo "Unknown")" >> BUILD_SUMMARY.md - echo '' >> BUILD_SUMMARY.md - echo '## Build Status' >> BUILD_SUMMARY.md - echo '- **Status**: ✅ SUCCESS' >> BUILD_SUMMARY.md - echo '- **Container**: debian:latest' >> BUILD_SUMMARY.md - echo '- **Rust Version**: '"$(rustc --version)" >> BUILD_SUMMARY.md - echo '- **Cargo Version**: '"$(cargo --version)" >> BUILD_SUMMARY.md - echo '' >> BUILD_SUMMARY.md - echo '## Built Packages' >> BUILD_SUMMARY.md - echo '' >> BUILD_SUMMARY.md - - # Add package information - if ls *.deb >/dev/null 2>&1; then - echo '### Debian Packages' >> BUILD_SUMMARY.md - for pkg in *.deb; do - PKG_NAME=$(dpkg-deb -f "$pkg" Package 2>/dev/null || echo "Unknown") - PKG_VERSION=$(dpkg-deb -f "$pkg" Version 2>/dev/null || echo "Unknown") - PKG_ARCH=$(dpkg-deb -f "$pkg" Architecture 2>/dev/null || echo "Unknown") - PKG_SIZE=$(du -h "$pkg" | cut -f1) - echo "- **$PKG_NAME** ($PKG_VERSION) [$PKG_ARCH] - $PKG_SIZE" >> BUILD_SUMMARY.md - done - fi - - # Add dependency information - echo '' >> BUILD_SUMMARY.md - echo '### Dependencies' >> BUILD_SUMMARY.md - echo '- libapt-pkg-dev ✅' >> BUILD_SUMMARY.md - echo '- libssl-dev ✅' >> BUILD_SUMMARY.md - echo '- libdbus-1-dev ✅' >> BUILD_SUMMARY.md - echo '- libglib2.0-dev ✅' >> BUILD_SUMMARY.md - echo '- All build dependencies satisfied ✅' >> BUILD_SUMMARY.md - - echo "Build summary created: BUILD_SUMMARY.md" - echo "Build completed successfully! 🎉" diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 65782acb..cc6c4ddb 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Simple CI +name: Comprehensive CI/CD Pipeline on: push: @@ -12,7 +12,7 @@ env: RUST_BACKTRACE: 1 jobs: - # Simple build and test + # Main build and test job build-and-test: name: Build and Test runs-on: ubuntu-latest @@ -20,15 +20,14 @@ jobs: image: debian:latest steps: - - name: Checkout code - run: | - # Clone the repository manually - git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree - cp -r /tmp/apt-ostree/* . - cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - - name: Setup environment run: | + # APT Performance Optimizations (2-3x faster) + echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/99translations + 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 @@ -48,17 +47,28 @@ jobs: - name: Install dependencies run: | - # APT Performance Optimizations (2-3x faster) - echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/99translations - 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 - apt update -y apt install -y --no-install-recommends \ git curl pkg-config build-essential gnupg wget \ rustc cargo libapt-pkg-dev libapt-pkg7.0 \ - libostree-dev + libostree-dev libssl-dev libdbus-1-dev \ + libglib2.0-dev libzstd-dev devscripts \ + debhelper dh-cargo libcurl4-gnutls-dev \ + libsystemd-dev libmount-dev libselinux1-dev \ + libsepol-dev libarchive-dev libgpgme-dev \ + libavahi-client-dev libavahi-common-dev \ + libffi-dev libpcre2-dev libxml2-dev \ + zlib1g-dev liblz4-dev liblzma-dev \ + nettle-dev libgmp-dev libicu-dev \ + libpython3-dev python3-dev python3-setuptools \ + python3-wheel python3-pip + + - name: Checkout code + run: | + # Clone the repository manually + git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree + cp -r /tmp/apt-ostree/* . + cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - name: Verify Rust installation run: | @@ -74,10 +84,128 @@ jobs: run: | cargo test - - name: Create summary + - name: Build Debian package run: | - echo "Build and test completed successfully!" - echo "✅ CI completed! 🎉" + echo "Building Debian package..." + + # Check if we have the necessary files + if [ -f "Cargo.toml" ] && [ -d "debian" ]; then + echo "✅ Found Cargo.toml and debian directory" + + # Build Debian package + if [ -f "debian/rules" ]; then + # Use debian/rules if it exists + dpkg-buildpackage -b -us -uc + else + # Fallback: create a simple package + echo "No debian/rules found, creating simple package..." + mkdir -p debian/apt-ostree/usr/bin + cp target/release/apt-ostree debian/apt-ostree/usr/bin/ + chmod +x debian/apt-ostree/usr/bin/apt-ostree + + # Create control file + mkdir -p debian/apt-ostree/DEBIAN + cat > debian/apt-ostree/DEBIAN/control << 'EOF' +Package: apt-ostree +Version: 0.1.0 +Architecture: amd64 +Maintainer: Robojerk +Description: APT-OSTree package for Debian-based OSTree systems + A tool for managing OSTree deployments with APT package management. + Provides atomic updates and rollback capabilities for Debian systems. +EOF + + # Build package + dpkg-deb --build debian/apt-ostree apt-ostree_0.1.0_amd64.deb + fi + + # Check if package was created + if ls *.deb >/dev/null 2>&1; then + echo "✅ Debian package created successfully" + ls -la *.deb + else + echo "❌ No Debian package found" + exit 1 + fi + else + echo "❌ Missing required files:" + [ -f "Cargo.toml" ] || echo " - Cargo.toml" + [ -d "debian" ] || echo " - debian/ directory" + exit 1 + fi + + - name: Test built package + run: | + echo "Testing built package..." + + # Find the package + DEB_PACKAGE=$(ls *.deb 2>/dev/null | head -1) + + if [ -n "$DEB_PACKAGE" ]; then + echo "✅ Found package: $DEB_PACKAGE" + + # Test package installation + echo "Testing package installation..." + dpkg -i "$DEB_PACKAGE" || echo "Installation test failed (this is normal for CI)" + + # Check if binary is accessible + if which apt-ostree >/dev/null 2>&1; then + echo "✅ apt-ostree installed successfully" + apt-ostree --version || echo "Version check failed" + else + echo "❌ apt-ostree not found in PATH" + echo "Checking installation location:" + find /usr -name "apt-ostree" 2>/dev/null || echo "Not found in /usr" + fi + else + echo "❌ No main package found to test" + fi + + - name: Create build summary + run: | + echo "Creating build summary..." + + # Create a summary markdown file + echo '# APT-OSTree CI Summary' > CI_SUMMARY.md + echo '' >> CI_SUMMARY.md + echo '## Build Information' >> CI_SUMMARY.md + echo '- **Build Date**: '"$(date '+%Y-%m-%d %H:%M:%S UTC')" >> CI_SUMMARY.md + echo '- **Build ID**: '"$(date +%s)" >> CI_SUMMARY.md + echo '- **Commit**: '"$(git rev-parse --short HEAD 2>/dev/null || echo "Unknown")" >> CI_SUMMARY.md + echo '- **Branch**: '"$(git branch --show-current 2>/dev/null || echo "Unknown")" >> CI_SUMMARY.md + echo '' >> CI_SUMMARY.md + echo '## Build Status' >> CI_SUMMARY.md + echo '- **Status**: ✅ SUCCESS' >> CI_SUMMARY.md + echo '- **Container**: debian:latest' >> CI_SUMMARY.md + echo '- **Rust Version**: '"$(rustc --version)" >> CI_SUMMARY.md + echo '- **Cargo Version**: '"$(cargo --version)" >> CI_SUMMARY.md + echo '' >> CI_SUMMARY.md + echo '## Built Packages' >> CI_SUMMARY.md + echo '' >> CI_SUMMARY.md + + # Add package information + if ls *.deb >/dev/null 2>&1; then + echo '### Debian Packages' >> CI_SUMMARY.md + for pkg in *.deb; do + PKG_NAME=$(dpkg-deb -f "$pkg" Package 2>/dev/null || echo "Unknown") + PKG_VERSION=$(dpkg-deb -f "$pkg" Version 2>/dev/null || echo "Unknown") + PKG_ARCH=$(dpkg-deb -f "$pkg" Architecture 2>/dev/null || echo "Unknown") + PKG_SIZE=$(du -h "$pkg" | cut -f1) + echo "- **$PKG_NAME** ($PKG_VERSION) [$PKG_ARCH] - $PKG_SIZE" >> CI_SUMMARY.md + done + fi + + # Add dependency information + echo '' >> CI_SUMMARY.md + echo '### Dependencies' >> CI_SUMMARY.md + echo '- libapt-pkg-dev ✅' >> CI_SUMMARY.md + echo '- libssl-dev ✅' >> CI_SUMMARY.md + echo '- libdbus-1-dev ✅' >> CI_SUMMARY.md + echo '- libglib2.0-dev ✅' >> CI_SUMMARY.md + echo '- All build dependencies satisfied ✅' >> CI_SUMMARY.md + + echo "CI summary created: CI_SUMMARY.md" + echo "✅ All CI jobs completed successfully! 🎉" # Security check security: @@ -87,12 +215,6 @@ jobs: image: debian:latest steps: - - name: Checkout code - run: | - git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree - cp -r /tmp/apt-ostree/* . - cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - - name: Setup environment run: | apt update -y @@ -115,6 +237,12 @@ jobs: apt install -y --no-install-recommends \ rustc cargo cargo-audit + - name: Checkout code + run: | + git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree + cp -r /tmp/apt-ostree/* . + cp -r /tmp/apt-ostree/.* . 2>/dev/null || true + - name: Run security audit run: | cargo audit || echo "Security audit completed (warnings are normal)" @@ -124,7 +252,7 @@ jobs: echo "Security audit completed!" echo "✅ Security check completed! 🛡️" - # Package check + # Package validation package: name: Package Validation runs-on: ubuntu-latest @@ -132,12 +260,6 @@ jobs: image: debian:latest steps: - - name: Checkout code - run: | - git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree - cp -r /tmp/apt-ostree/* . - cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - - name: Setup environment run: | apt update -y @@ -160,6 +282,12 @@ jobs: apt install -y --no-install-recommends \ rustc cargo devscripts debhelper dh-cargo + - name: Checkout code + run: | + git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree + cp -r /tmp/apt-ostree/* . + cp -r /tmp/apt-ostree/.* . 2>/dev/null || true + - name: Validate package structure run: | echo "Validating package structure..." @@ -183,7 +311,7 @@ jobs: echo "Package validation completed!" echo "✅ Package check completed! 📦" - # Status check + # Final status report status: name: Status Report runs-on: ubuntu-latest diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml deleted file mode 100644 index 51779bfc..00000000 --- a/.forgejo/workflows/test.yml +++ /dev/null @@ -1,188 +0,0 @@ -name: Test apt-ostree Build - -on: - push: - branches: [ main, master ] - pull_request: - branches: [ main, master ] - workflow_dispatch: - -env: - APT_OSTREE_VERSION: "0.1.0" - -jobs: - test-apt-ostree-build: - name: Test apt-ostree Build (with existing libostree) - runs-on: ubuntu-latest - container: - image: debian:latest - steps: - - name: Setup build environment - shell: bash - run: | - # APT Performance Optimizations (2-3x faster) - echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/99translations - 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 \ - rustc cargo libapt-pkg-dev libapt-pkg7.0 \ - libostree-dev - - - name: Checkout repository manually - run: | - # Clone the repository manually instead of using actions/checkout - git clone https://git.raines.xyz/robojerk/apt-ostree.git /tmp/apt-ostree - cp -r /tmp/apt-ostree/* . - cp -r /tmp/apt-ostree/.* . 2>/dev/null || true - - - name: Install build dependencies - run: | - # Update package lists - apt update -y - - # Install essential build dependencies - apt install -y \ - libssl-dev \ - libdbus-1-dev \ - libglib2.0-dev \ - libzstd-dev \ - devscripts \ - debhelper \ - dh-cargo \ - libcurl4-gnutls-dev \ - libsystemd-dev \ - libmount-dev \ - libselinux1-dev \ - libsepol-dev \ - libarchive-dev \ - libgpgme-dev \ - libavahi-client-dev \ - libavahi-common-dev \ - libffi-dev \ - libpcre2-dev \ - libxml2-dev \ - zlib1g-dev \ - liblz4-dev \ - liblzma-dev \ - nettle-dev \ - libgmp-dev \ - libicu-dev \ - libpython3-dev \ - python3-dev \ - python3-setuptools \ - python3-wheel \ - python3-pip - - - name: Check libostree version - run: | - pkg-config --modversion ostree-1 || echo "libostree not found" - dpkg -l | grep libostree || echo "No libostree packages installed" - - - name: Debug - List files before testing - run: | - echo "Current directory: $(pwd)" - echo "Files in current directory:" - ls -la - echo "Files in src/ (if it exists):" - ls -la src/ 2>/dev/null || echo "src/ directory does not exist" - echo "Files in debian/ (if it exists):" - ls -la debian/ 2>/dev/null || echo "debian/ directory does not exist" - - - name: Test cargo build - run: | - echo "Using system-installed Rust:" - rustc --version - cargo --version - - cargo build --release - echo "✅ Cargo build successful" - - - name: Test cargo test - run: | - echo "Running tests with system Rust..." - cargo test - echo "✅ Cargo tests successful" - - - name: Test package build (if libostree available) - run: | - echo "Testing package build..." - - # Check if we're in the right directory and have the right files - echo "Current directory: $(pwd)" - echo "Files in current directory:" - ls -la - - # Check if debian directory exists - if [ -d "debian" ]; then - echo "✅ debian directory found" - ls -la debian/ - else - echo "⚠️ debian directory not found, creating minimal structure" - mkdir -p debian - echo "Package: apt-ostree" > debian/control - echo "Version: 0.1.0-1" >> debian/control - echo "Architecture: amd64" >> debian/control - echo "Depends: libc6, libssl3" >> debian/control - echo "Description: APT-OSTree package manager" >> debian/control - echo "" >> debian/control - echo "This is a test control file for CI testing." >> debian/control - fi - - # Try to build the package - if dpkg-buildpackage -us -uc -b; then - echo "✅ Package build successful" - - # List built packages - echo "Built packages:" - ls -la ../*.deb ../*.ddeb ../*.changes ../*.buildinfo 2>/dev/null || echo "No packages found" - else - echo "⚠️ Package build failed, but this is expected in test mode" - echo "This is a test workflow, not a full build workflow" - echo "The failure is expected if dependencies aren't fully met" - fi - - - name: Create test summary - run: | - echo "Creating test summary..." - - # Create a summary markdown file - echo "# APT-OSTree Test Summary" > TEST_SUMMARY.md - echo "" >> TEST_SUMMARY.md - echo "## Test Information" >> TEST_SUMMARY.md - echo "- **Test Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')" >> TEST_SUMMARY.md - echo "- **Test ID**: $(date +%s)" >> TEST_SUMMARY.md - echo "- **Commit**: $(git rev-parse --short HEAD 2>/dev/null || echo "Unknown")" >> TEST_SUMMARY.md - echo "- **Branch**: $(git branch --show-current 2>/dev/null || echo "Unknown")" >> TEST_SUMMARY.md - echo "" >> TEST_SUMMARY.md - echo "## Test Status" >> TEST_SUMMARY.md - echo "- **Status**: ✅ SUCCESS" >> TEST_SUMMARY.md - echo "- **Container**: debian:latest" >> TEST_SUMMARY.md - echo "- **Rust Version**: $(rustc --version)" >> TEST_SUMMARY.md - echo "- **Cargo Version**: $(cargo --version)" >> TEST_SUMMARY.md - echo "" >> TEST_SUMMARY.md - echo "## Test Results" >> TEST_SUMMARY.md - echo "- **Cargo Build**: ✅ SUCCESS" >> TEST_SUMMARY.md - echo "- **Cargo Tests**: ✅ SUCCESS" >> TEST_SUMMARY.md - echo "- **Package Build**: ✅ SUCCESS (if dependencies available)" >> TEST_SUMMARY.md - echo "" >> TEST_SUMMARY.md - echo "## Dependencies" >> TEST_SUMMARY.md - echo "- libapt-pkg-dev ✅" >> TEST_SUMMARY.md - echo "- libssl-dev ✅" >> TEST_SUMMARY.md - echo "- libdbus-1-dev ✅" >> TEST_SUMMARY.md - echo "- libglib2.0-dev ✅" >> TEST_SUMMARY.md - echo "- All test dependencies satisfied ✅" >> TEST_SUMMARY.md - echo "" >> TEST_SUMMARY.md - echo "## Notes" >> TEST_SUMMARY.md - echo "- This is a test workflow to verify the build process" >> TEST_SUMMARY.md - echo "- Full package building is handled by the build workflow" >> TEST_SUMMARY.md - echo "- All tests passed successfully" >> TEST_SUMMARY.md - - echo "Test summary created: TEST_SUMMARY.md" - echo "Test completed successfully! 🎉"