@@ -11,16 +11,15 @@ jobs:
1111 - arch : aarch64
1212 vmconfigs : configs/vms/arceos-aarch64-qemu-smp1.toml
1313 vmconfigs_name : ArceOS
14- vmimage_name : qemu_arceos_aarch64
15- # vmrootfs_name: qemu_arceos_aarch64
14+ vmimage_name : qemu_aarch64_arceos
1615 # - arch: riscv64
1716 # vmconfigs: configs/vms/arceos-riscv64-qemu-smp1.toml
1817 # vmconfigs_name: ArceOS
1918 # vmimage_name: qemu_arceos_riscv64
20- # - arch: x86_64
21- # vmconfigs: configs/vms/arceos -x86_64-qemu-smp1.toml
22- # vmconfigs_name: ArceOS
23- # vmimage_name: qemu_arceos_x86_64
19+ - arch : x86_64
20+ vmconfigs : configs/vms/nimbos -x86_64-qemu-smp1.toml
21+ vmconfigs_name : NimbOS
22+ vmimage_name : qemu_x86_64_nimbos
2423 fail-fast : false
2524 runs-on :
2625 - self-hosted
@@ -49,26 +48,26 @@ jobs:
4948 echo "Updated kernel_path in $config"
5049 done
5150
52- - name : Download rootfs
51+ - name : Download IMAGES
5352 run : |
54- if [ -n "${{ matrix.vmrootfs_name }}" ]; then
55- ROOTFS_URL="https://github.com/arceos-hypervisor/axvisor-guest/releases/download/v0.0.19/${{ matrix.vmrootfs_name }}.tar.gz"
56- ROOTFS_DIR="/tmp/axvisor/rootfs/${{ matrix.vmrootfs_name }}"
57- ROOTFS_IMG_PATH="${ROOTFS_DIR}/rootfs.img"
58- mkdir -p "${ROOTFS_DIR}"
59-
60- echo "Downloading rootfs from ${ROOTFS_URL}"
61- curl -L "${ROOTFS_URL}" -o "${ROOTFS_DIR}/${{ matrix.vmrootfs_name }}.tar.gz"
62-
63- echo "Extracting rootfs to ${ROOTFS_DIR}"
64- tar -xzf "${ROOTFS_DIR}/${{ matrix.vmrootfs_name }}.tar.gz" -C "${ROOTFS_DIR}"
65-
66- echo "Patching qemu-aarch64.toml file..."
53+ IMAGES_URL="https://github.com/arceos-hypervisor/axvisor-guest/releases/download/v0.0.19/${{ matrix.vmimage_name }}.tar.gz"
54+ IMAGES_DIR="/tmp/axvisor/images/${{ matrix.vmimage_name }}"
55+ ROOTFS_IMG_PATH="${IMAGES_DIR}/rootfs.img"
56+ mkdir -p "${IMAGES_DIR}"
57+ echo "Downloading rootfs from ${IMAGES_URL}"
58+ curl -L "${IMAGES_URL}" -o "${IMAGES_DIR}/${{ matrix.vmimage_name }}.tar.gz"
59+
60+ # Extract the tar.gz file
61+ echo "Extracting archive to ${IMAGES_DIR}"
62+ tar -xzf "${IMAGES_DIR}/${{ matrix.vmimage_name }}.tar.gz" -C "${IMAGES_DIR}"
63+
64+ # Check if rootfs.img exists after extraction
65+ if [ -f "${ROOTFS_IMG_PATH}" ]; then
66+ echo "Found rootfs.img, patching qemu-aarch64.toml file..."
6767 sed -i 's|file=${workspaceFolder}/tmp/rootfs.img|file='"${ROOTFS_IMG_PATH}"'|' ".github/workflows/qemu-${{ matrix.arch }}.toml"
68-
6968 echo "Rootfs setup completed"
7069 else
71- echo "Removing rootfs device configuration from qemu-${{ matrix.arch }}.toml..."
70+ echo "No rootfs.img found, removing rootfs device configuration from qemu-${{ matrix.arch }}.toml..."
7271 sed -i '/-device/,/virtio-blk-device,drive=disk0/d' ".github/workflows/qemu-${{ matrix.arch }}.toml"
7372 sed -i '/-drive/,/id=disk0,if=none,format=raw,file=${workspaceFolder}\/tmp\/rootfs.img/d' ".github/workflows/qemu-${{ matrix.arch }}.toml"
7473 sed -i 's/root=\/dev\/vda rw //' ".github/workflows/qemu-${{ matrix.arch }}.toml"
0 commit comments