ci: fix GITHUB_WORKSPACE

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

View File

@@ -13,6 +13,7 @@ jobs:
steps: steps:
- name: install tools - name: install tools
run: apt update && apt install -y wget iproute2 && pip3 install requests --break-system-packages run: apt update && apt install -y wget iproute2 && pip3 install requests --break-system-packages
- uses: https://gitee.com/ci-actions/checkout.git@v3
- name: get the latest qemu image - name: get the latest qemu image
run: | run: |
BASE_URL="${QEMU_IMG%/*}" BASE_URL="${QEMU_IMG%/*}"
@@ -32,7 +33,7 @@ jobs:
echo "Download $FILE_NAME ..." echo "Download $FILE_NAME ..."
rm -f openruyi-virt_riscv64.qcow2* rm -f openruyi-virt_riscv64.qcow2*
wget -q --show-progress -O "/test/images/openruyi/openruyi-virt_riscv64.qcow2" "${QEMU_IMG}" 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 if [ $? -ne 0 ]; then
echo "Fail to start QEMU VM!" echo "Fail to start QEMU VM!"
exit $? exit $?

View File

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