forked from redrsoe2100/os-autotest
ci: fix GITHUB_WORKSPACE
This commit is contained in:
3
.github/workflows/qemy-test.yml
vendored
3
.github/workflows/qemy-test.yml
vendored
@@ -13,6 +13,7 @@ jobs:
|
||||
steps:
|
||||
- name: install tools
|
||||
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
|
||||
run: |
|
||||
BASE_URL="${QEMU_IMG%/*}"
|
||||
@@ -32,7 +33,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 $?
|
||||
|
||||
3
.github/workflows/scripts/qemu.sh
vendored
3
.github/workflows/scripts/qemu.sh
vendored
@@ -83,4 +83,5 @@ elif [ $RET -eq 2 ]; then
|
||||
else
|
||||
echo "启动失败,退出码 $RET"
|
||||
fi
|
||||
exit $RET
|
||||
|
||||
exit $RET
|
||||
|
||||
Reference in New Issue
Block a user