添加github workflow,检查代码是否已经格式化 (#342)

* 添加github workflow,检查代码是否已经格式化
This commit is contained in:
LoGin
2023-08-24 18:50:52 +08:00
committed by GitHub
parent f09a98329c
commit 9a367aa7eb
14 changed files with 122 additions and 23 deletions

View File

@ -95,7 +95,7 @@ sys_api_lib: sys_api_lib_stage_1
mkdir -p $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
mkdir -p $(OLD_LIBC_INSTALL_PATH)/include
mkdir -p $(OLD_LIBC_INSTALL_PATH)/lib
$(AR) x $(ROOT_PATH)/user/libs/libc/target/x86_64-unknown-none/release/liblibc.a --output=$(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
$(AR) x $(ROOT_PATH)/target/x86_64-unknown-none/release/liblibc.a --output=$(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
$(AR) crvs $(OLD_LIBC_INSTALL_PATH)/lib/libc.a $(shell find ./libs/* -name "*.o") $(shell find $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp/* -name "*.o")
rm -rf $(ROOT_PATH)/bin/tmp/user/sys_api_lib_build_tmp
# $(shell find ./libs/* -name "*.o" | xargs -I {} cp {} $(ROOT_PATH)/bin/sysroot/usr/lib/)

View File

@ -42,4 +42,4 @@ fn main() {
.write_to_file(out_path.join("bindings.rs"))
.expect("Couldn't write bindings!");
}
}
}

View File

@ -36,4 +36,4 @@ libc: $(libc_objs) $(libc_sub_dirs) libc_rust
libc_rust:
rustup default nightly
cargo +nightly build --release --target ./arch/x86_64/x86_64-unknown-none.json
cargo +nightly build --release --target ./arch/x86_64/x86_64-unknown-none.json

View File

@ -1 +1 @@
pub mod bindings;
pub mod bindings;

View File

@ -1 +1 @@
pub mod bindings;
pub mod bindings;

View File

@ -1 +1 @@
pub mod internal;
pub mod internal;