Skip to content

load kernel to kernel_addr_r #22

load kernel to kernel_addr_r

load kernel to kernel_addr_r #22

Workflow file for this run

name: Check, Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain: [stable, nightly]
targets: [x86_64-unknown-linux-gnu]
steps:
- uses: actions/checkout@v4
- name: Install qemu-system
run: sudo apt update && sudo apt install qemu-system -y
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ matrix.rust-toolchain }}
components: rust-src, clippy, rustfmt
targets: ${{ matrix.targets }}
- 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