feat: 添加超时配置支持到 QEMU 和 U-Boot 运行器,改进串口终端的超时处理 #63
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: Quality Check | |
| on: | |
| workflow_call: | |
| push: | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rust-toolchain: [stable] | |
| targets: [x86_64-unknown-linux-gnu] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: ${{ matrix.rust-toolchain }} | |
| components: clippy, rustfmt | |
| targets: ${{ matrix.targets }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install qemu | |
| run: | | |
| sudo apt-get update | |
| sudo apt install qemu-system-aarch64 -y | |
| sudo apt install u-boot-tools -y | |
| - name: Install lib libudev-dev | |
| run: sudo apt install libudev-dev -y | |
| - name: Check rust version | |
| run: rustc --version --verbose | |
| - name: Check code format | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --target ${{ matrix.targets }} --all-features | |
| - name: Build | |
| run: cargo build --target ${{ matrix.targets }} --all-features | |
| - name: Unit test | |
| if: ${{ matrix.targets == 'x86_64-unknown-linux-gnu' }} | |
| run: cargo test --target ${{ matrix.targets }} -- --nocapture |