Skip to content

Commit

Permalink
ci: fix show qemu
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Nov 17, 2023
1 parent 9aec229 commit 9b1aac0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
make bootimages
make DISK_SIZE=128 gendisk
RUNQEMUSH=work/$SOC/run_qemu.sh
SHOWQEMUSH=work/$SOC/show_qemu.sh
qemucmd=qemu-system-riscv32
if [[ $CORE == *ux* ]] ; then
qemucmd=qemu-system-riscv64
Expand All @@ -95,6 +96,7 @@ jobs:
echo "$qemucmd --version" >> $SHOWQEMUSH
echo "$qemucmd -M nuclei_${SOC},download=flashxip -cpu nuclei-${CORE},ext=$ARCH_EXT -smp 8 -m 2g -bios freeloader_qemu.elf -nographic -drive file=disk.img,if=sd,format=raw" > $RUNQEMUSH
chmod +x $RUNQEMUSH
chmod +x $SHOWQEMUSH
unset TIMER_HZ
echo ">>> Reset workaround and source code"
git reset --hard
Expand All @@ -109,6 +111,8 @@ jobs:
export PATH=${QEMU_PATH}:$PATH
export SOC=${{ matrix.soc }} CORE=${{ matrix.core }} BOOT_MODE=${{ matrix.boot_mode }}
cd work/$SOC
# show qemu version
bash show_qemu.sh
# $(cat run_qemu.sh) is workaround for directly run bash run_qemu.sh
# If do kill it will just kill bash process, the qemu process is not killed
# SIGTERM is better for kill qemu
Expand Down Expand Up @@ -138,7 +142,7 @@ jobs:
work/${{ matrix.soc }}/freeloader_qemu.elf
work/${{ matrix.soc }}/buildstamp.txt
work/${{ matrix.soc }}/disk.img
work/${{ matrix.soc }}/run_qemu.sh
work/${{ matrix.soc }}/*.sh
- name: Upload cached packages
if: matrix.core == 'ux900fd' && matrix.boot_mode == 'sd' && matrix.soc == 'evalsoc'
Expand Down

0 comments on commit 9b1aac0

Please sign in to comment.