add test step github ci

This commit is contained in:
2025-12-20 17:34:44 +01:00
parent 68a78861c0
commit 014fc90726
2 changed files with 14 additions and 4 deletions

View File

@@ -21,8 +21,7 @@ jobs:
- name: Run format check
run: cargo fmt --check
- name: Run lint
run: cargo clippy -- -D warnings
run: cargo clippy --target aarch64-unknown-none -- -D warnings
build:
runs-on: ubuntu-latest
@@ -33,4 +32,16 @@ jobs:
- name: Add AArch64 Target
run: rustup target add aarch64-unknown-none
- name: Build
run: cargo build --verbose
run: cargo build --verbose --target aarch64-unknown-none
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rustfmt for nightly
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt clippy
- name: Add AArch64 Target
run: rustup target add aarch64-unknown-none
- name: Heap Workspace Test
run: cargo test -p heap

View File

@@ -6,7 +6,6 @@ use core::{
use crate::{
mmio_read, mmio_write,
peripherals::gpio::{blink_gpio, SpecificGpio},
print,
timer::sleep_s,
};