Fix remaining Forgejo compatibility issues
Some checks failed
Build apt-ostree Package / Build apt-ostree Package (push) Failing after 1m46s
Comprehensive CI / test (Debian Stable (aarch64), aarch64-unknown-linux-gnu) (push) Failing after 2s
Comprehensive CI / test (Debian Stable (x86_64), x86_64-unknown-linux-gnu) (push) Failing after 2s
Comprehensive CI / security (push) Failing after 1s
Comprehensive CI / benchmark (push) Failing after 1s
Comprehensive CI / docs (push) Failing after 1s
Comprehensive CI / debian-package (push) Failing after 1s
Comprehensive CI / ostree-integration (push) Failing after 1s
Comprehensive CI / coverage (push) Failing after 1s
Test apt-ostree Build / Test apt-ostree Build (with existing libostree) (push) Failing after 1m14s
Comprehensive CI / status (push) Successful in 1s

- Update context variables from github.* to forge.* syntax
- Simplify matrix strategy to remove unsupported os/rust variables
- Standardize runs-on to ubuntu-latest for all jobs
- Add summary creation steps for better workflow feedback
- Ensure all workflows use pure Forgejo-compatible syntax
This commit is contained in:
joe 2025-08-13 16:37:58 -07:00
parent 34af5d5c0d
commit 1936849be9
4 changed files with 43 additions and 32 deletions

View file

@ -355,9 +355,9 @@ jobs:
## Build Information
- **Build Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Build ID**: ${{ github.run_id }}
- **Commit**: ${{ github.sha }}
- **Branch**: ${{ github.ref_name }}
- **Build ID**: ${{ forge.run_number }}
- **Commit**: ${{ forge.sha }}
- **Branch**: ${{ forge.ref_name }}
## Build Status
- **Status**: ✅ SUCCESS

View file

@ -19,18 +19,13 @@ jobs:
matrix:
include:
- name: "Debian Stable (x86_64)"
os: ubuntu-22.04
rust: stable
target: x86_64-unknown-linux-gnu
container: debian:latest
- name: "Debian Stable (aarch64)"
os: ubuntu-22.04
rust: stable
target: aarch64-unknown-linux-gnu
container: debian:latest
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -118,10 +113,16 @@ jobs:
cargo clippy --target ${{ matrix.target }} -- -D warnings
cargo fmt --target ${{ matrix.target }} -- --check
- name: Create test summary
run: |
echo "Test completed successfully for target: ${{ matrix.target }}"
echo "Test completed successfully! 🎉"
# Security and quality checks
security:
runs-on: ubuntu-22.04
container: debian:latest
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -187,10 +188,16 @@ jobs:
. ~/.cargo/env
cargo audit --deny warnings
- name: Create security summary
run: |
echo "Security audit completed successfully!"
echo "Security checks completed! 🎉"
# Performance benchmarking
benchmark:
runs-on: ubuntu-22.04
container: debian:latest
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -263,8 +270,9 @@ jobs:
# Documentation build
docs:
runs-on: ubuntu-22.04
container: debian:latest
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -337,8 +345,9 @@ jobs:
# Debian package build
debian-package:
runs-on: ubuntu-22.04
container: debian:latest
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -433,8 +442,9 @@ jobs:
# Integration testing with real OSTree
ostree-integration:
runs-on: ubuntu-22.04
container: debian:latest
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -518,8 +528,9 @@ jobs:
# Code coverage
coverage:
runs-on: ubuntu-22.04
container: debian:latest
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- name: Checkout code
@ -609,9 +620,9 @@ jobs:
## Build Information
- **Build Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Build ID**: ${{ github.run_id }}
- **Commit**: ${{ github.sha }}
- **Branch**: ${{ github.ref_name }}
- **Build ID**: ${{ forge.run_number }}
- **Commit**: ${{ forge.sha }}
- **Branch**: ${{ forge.ref_name }}
## CI Status
- **Container**: debian:latest

View file

@ -182,9 +182,9 @@ jobs:
## Test Information
- **Test Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Test ID**: ${{ github.run_id }}
- **Commit**: ${{ github.sha }}
- **Branch**: ${{ github.ref_name }}
- **Test ID**: ${{ forge.run_number }}
- **Commit**: ${{ forge.sha }}
- **Branch**: ${{ forge.ref_name }}
## Test Status
- **Status**: ✅ SUCCESS

View file

@ -60,7 +60,7 @@ jobs:
run: |
# Get current date and workflow run ID
BUILD_DATE=$(date '+%Y-%m-%d %H:%M:%S UTC')
WORKFLOW_RUN_ID=${{ github.event.workflow_run.id }}
WORKFLOW_RUN_ID=${{ forge.run_number }}
echo "Updating README with workflow run ID: $WORKFLOW_RUN_ID"
@ -135,7 +135,7 @@ jobs:
# Add and commit changes
git add README.md
git commit -m "Update README with download links for build ${{ github.event.workflow_run.id }}"
git commit -m "Update README with download links for build ${{ forge.run_number }}"
# Push changes
git push origin main
@ -150,7 +150,7 @@ jobs:
## Update Information
- **Update Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Triggered by**: Build workflow ${{ github.event.workflow_run.id }}
- **Triggered by**: Build workflow ${{ forge.run_number }}
- **Status**: ✅ SUCCESS
## Changes Made