CI: Prepare for CI/CD
This commit is contained in:
parent
d1ea875699
commit
aadebbfefe
48
.gitea/workflows/ci.yaml
Normal file
48
.gitea/workflows/ci.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo check
|
||||
|
||||
# Disabled until custom test harness is implemented.
|
||||
#test:
|
||||
# name: Test Suite
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
# - run: cargo test
|
||||
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup component add rustfmt
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup component add clippy
|
||||
- run: cargo clippy -- -D warnings
|
||||
|
||||
build:
|
||||
name: Build (x86_64)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: rustup target add x86_64-unknown-none
|
||||
- run: cargo build --bin kernel --target x86_64-unknown-none
|
@ -14,8 +14,7 @@ compile_error!(
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
pub mod x86_64;
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
pub use x86_64::asm;
|
||||
pub use x86_64::paging;
|
||||
pub use x86_64::{asm, paging};
|
||||
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
pub mod aarch64;
|
||||
|
@ -36,6 +36,6 @@ impl From<u64> for SyscallStatus {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn exit(code: u64) -> SyscallStatus {
|
||||
arch::syscall_impl::caller_syscall_1(Syscall::Exit as u64, code).into()
|
||||
}
|
||||
//pub fn exit(code: u64) -> SyscallStatus {
|
||||
// arch::syscall_impl::caller_syscall_1(Syscall::Exit as u64, code).into()
|
||||
//}
|
||||
|
Loading…
Reference in New Issue
Block a user