Fix remaining Forgejo compatibility issues
- 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:
parent
9c7cbfffac
commit
4e232e1012
4 changed files with 43 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue