feat(ci): add CI support for building and booting riscv64 kernel in workflow, within oscomp environment (#6)

* feat(ide): add gdb-multiarch debug support for better stack tracking

* feat(test): add oscomp testcase aquirement

* feat(ci): bump to oscomp test

* feat(ci): new ci procedure

* feat(ci): update CI workflow to replace git mirror and remove unnecessary userland build condition
This commit is contained in:
2025-03-21 22:47:57 +08:00
committed by GitHub
parent 510b1c2f0f
commit 717bd9209a
9 changed files with 121 additions and 109 deletions

View File

@ -44,6 +44,12 @@ all:
#@make ARCH=x86_64 ci-build
@make ARCH=riscv64 ci-build
ci-get-testcase:
ifneq ($(REGET), 1)
@echo "测试用例已经获取,跳过获取步骤。如需重新获取,请设置 REGET=1"
endif
@cd oscomp && sh ci-testcase.sh
ci-update-submodules:
@echo "更新子模块"
@sudo chown -R $(shell whoami) .
@ -82,6 +88,7 @@ kernel user write_diskimage write_diskimage-uefi qemu qemu-nographic qemu-uefi q
.PHONY: clean
clean:
@rm -rf bin
@list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Clean in dir: $$subdir";\
cd $$subdir && $(MAKE) clean;\
@ -106,7 +113,7 @@ else
gdb-multiarch -n -x tools/.gdbinit
endif
fmt: check_arch
fmt:
@echo "格式化代码"
FMT_CHECK=$(FMT_CHECK) $(MAKE) fmt -C kernel
FMT_CHECK=$(FMT_CHECK) $(MAKE) fmt -C user