Skip to content

feat(kernel): 更新依赖版本并添加initrd路径配置 #28

feat(kernel): 更新依赖版本并添加initrd路径配置

feat(kernel): 更新依赖版本并添加initrd路径配置 #28

Workflow file for this run

name: Kernel Tests
on:
- push
- pull_request
jobs:
test:
name: Run Kernel Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y xorriso cpio qemu-system-x86-64
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
targets: x86_64-unknown-none
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
kernel/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run cargo test
working-directory: kernel
run: cargo test --lib
timeout-minutes: 10
- name: Upload Test Report
uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports
path: target/test-reports