feat: 添加 set_regs 方法以支持根据父节点的 ranges 转换 CPU 地址为 bus 地址,并更新 regs 方法返回类型 #171
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: Build & Check CI | |
| on: [push, pull_request] | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rust-toolchain: [nightly] | |
| targets: [x86_64-unknown-linux-gnu, x86_64-unknown-none, riscv64gc-unknown-none-elf, aarch64-unknown-none-softfloat] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: ${{ matrix.rust-toolchain }} | |
| components: rust-src, clippy, rustfmt | |
| targets: ${{ matrix.targets }} | |
| - name: Check rust version | |
| run: rustc --version --verbose | |
| - name: Check code format | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --manifest-path ./fdt-parser/Cargo.toml --target ${{ matrix.targets }} --all-features -- -A clippy::new_without_default | |
| - name: Build | |
| run: cargo build -p fdt-parser --target ${{ matrix.targets }} --all-features | |
| - name: Install dtc | |
| if: ${{ matrix.targets == 'x86_64-unknown-linux-gnu' }} | |
| run: sudo apt-get install device-tree-compiler | |
| - name: Unit test | |
| if: ${{ matrix.targets == 'x86_64-unknown-linux-gnu' }} | |
| run: cargo test --target ${{ matrix.targets }} -- --nocapture |