ci: fix GITHUB_WORKSPACE

This commit is contained in:
2026-04-22 16:42:56 +08:00
parent 26fe3b9fd4
commit 3108206682
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ jobs:
echo "Download $FILE_NAME ..."
rm -f openruyi-virt_riscv64.qcow2*
wget -q --show-progress -O "/test/images/openruyi/openruyi-virt_riscv64.qcow2" "${QEMU_IMG}"
bash "${{ github.workspace }}/.github/workflows/scripts/qemu.sh"
bash "$GITHUB_WORKSPACE/.github/workflows/scripts/qemu.sh"
if [ $? -ne 0 ]; then
echo "Fail to start QEMU VM!"
exit $?

View File

@@ -83,4 +83,5 @@ elif [ $RET -eq 2 ]; then
else
echo "启动失败,退出码 $RET"
fi
exit $RET
exit $RET