fix(scheduler): 修复逻辑,防止饿死主线程 #76
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Kernel Tests | |
| on: | |
| push: | |
| paths: | |
| - "kernel/**" | |
| - "**/Makefile" | |
| pull_request: | |
| paths: | |
| - "kernel/**" | |
| - "**/Makefile" | |
| 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: Setup Anaxa Build System | |
| run: cargo install cargo-anaxa | |
| - 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: make test | |
| timeout-minutes: 10 | |
| - name: Upload Test Report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-reports | |
| path: target/test-reports |