Skip to content

Commit 1669b7c

Browse files
committed
ci: change guest image path
1 parent aeeb14e commit 1669b7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Download images and patch VM configs
4646
run: |
4747
echo "Downloading guest images and patching VM config files..."
48-
mkdir -p images
48+
mkdir -p /tmp/images
4949
IFS=',' read -ra CONFIGS <<< "${{ matrix.vmconfigs }}"
5050
IFS=',' read -ra IMAGES <<< "${{ matrix.vmimage_name }}"
5151
for i in "${!CONFIGS[@]}"; do
@@ -56,9 +56,9 @@ jobs:
5656
img_name="${img%.tar.gz}"
5757
5858
echo "Downloading $img and patching $config..."
59-
wget -P ./images https://github.com/arceos-hypervisor/axvisor-guest/releases/latest/download/$img
60-
tar -xzf ./images/$img -C ./images
61-
sed -i 's|^kernel_path[[:space:]]*=.*|kernel_path = "./images/'"$img_name"'"|' "$config"
59+
wget -P /tmp/images https://github.com/arceos-hypervisor/axvisor-guest/releases/latest/download/$img
60+
tar -xzf /tmp/images/$img -C /tmp/images
61+
sed -i 's|^kernel_path[[:space:]]*=.*|kernel_path = "/tmp/images/'"$img_name"'"|' "$config"
6262
echo "Updated kernel_path in $config"
6363
done
6464

0 commit comments

Comments
 (0)