rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

[Feature] ci/cd 在qemu上实现方案

Open supperthomas opened this issue 11 months ago • 4 comments

Describe problem solved by the proposed feature

可以在原有的ci.attachconfig.yml中实现如下规则:

bsp_board_info:
    arch: arm
    toolchain: arm-none-eabi-gcc
    pre_build: |
       ./tools/ci/toolchain.sh arm-none-eabi-gcc
       apt-get install qemu-system
    post_build: arm-none-eabi-objcopy -O ihex rt-thread.elf rt-thread.hex
    run_cmd: ./qemu-nographic.sh                     
    qemu_flag: true
pkg.tools.coremark:
  kconfig: 
    - CONFIG_PKG_USING_COREMARK=y
  ci_build_run_flag : true
  buildcheckresult: "coremark"              #检查编译的log中是否有匹配字
  checkresult: '[==========] [ utest ] end' #检查执行过程中的log是否有匹配字

supperthomas avatar Jan 20 '25 13:01 supperthomas

@kurisaW

supperthomas avatar Jan 20 '25 13:01 supperthomas

@supperthomas 这个之前和满老师讨论过,您的attachconfig是面向整个bsp编译的,然后qemu的auto utest 脚本实际只需要针对那三个qemu平台进行配置,分开更方便维护一些,然后配置信息我们放在.github/utest下

kurisaW avatar Jan 26 '25 10:01 kurisaW

@supperthomas 这个之前和满老师讨论过,您的attachconfig是面向整个bsp编译的,然后qemu的auto utest 脚本实际只需要针对那三个qemu平台进行配置,分开更方便维护一些,然后配置信息我们放在.github/utest下

可以呀,这个后面当拓展。

supperthomas avatar Jan 26 '25 11:01 supperthomas

@Li-Dongze

supperthomas avatar Jan 26 '25 14:01 supperthomas