mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 04:32:27 +00:00
add test step github ci
This commit is contained in:
17
.github/workflows/rust.yml
vendored
17
.github/workflows/rust.yml
vendored
@@ -21,8 +21,7 @@ jobs:
|
|||||||
- name: Run format check
|
- name: Run format check
|
||||||
run: cargo fmt --check
|
run: cargo fmt --check
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: cargo clippy -- -D warnings
|
run: cargo clippy --target aarch64-unknown-none -- -D warnings
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
@@ -33,4 +32,16 @@ jobs:
|
|||||||
- name: Add AArch64 Target
|
- name: Add AArch64 Target
|
||||||
run: rustup target add aarch64-unknown-none
|
run: rustup target add aarch64-unknown-none
|
||||||
- name: Build
|
- 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
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use core::{
|
|||||||
use crate::{
|
use crate::{
|
||||||
mmio_read, mmio_write,
|
mmio_read, mmio_write,
|
||||||
peripherals::gpio::{blink_gpio, SpecificGpio},
|
peripherals::gpio::{blink_gpio, SpecificGpio},
|
||||||
print,
|
|
||||||
timer::sleep_s,
|
timer::sleep_s,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user