Skip to content

Commit 7c95187

Browse files
committed
fix: update ci
1 parent d5ea5b2 commit 7c95187

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.github/workflows/qemu-aarch64.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ args = [
1212
"8g",
1313
]
1414
fail_regex = []
15-
success_regex = []
15+
success_regex = ["Hello, world!"]
1616
to_bin = true
1717
uefi = false

.github/workflows/uboot.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ fail_regex = [
77
]
88
serial = "${env:BOARD_COMM_UART_DEV}"
99
success_regex = [
10-
"Welcome to AxVisor Shell!",
11-
"All tests passed!",
10+
"Welcome to AxVisor Shell!",
11+
"All tests passed!",
1212
"Hello World!",
1313
"root@firefly:~#",
1414
"root@phytium-Ubuntu:~#",

xtask/src/image.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use std::process::Command;
2727
use std::fs;
2828
use std::env;
2929
use std::io::Read;
30-
// use tokio::fs::File; // Unused import
3130
use tokio::io::{AsyncWriteExt, BufWriter};
3231

3332
/// Base URL for downloading images
@@ -269,7 +268,6 @@ fn image_list() -> Result<()> {
269268
}
270269

271270
Ok(())
272-
// Return Ok to indicate successful execution
273271
}
274272

275273
/// Download the specified image and optionally extract it
@@ -312,11 +310,6 @@ async fn image_download(image_name: &str, output_dir: Option<String>, extract: b
312310
}
313311
};
314312

315-
// Build download URL
316-
let download_url = format!("{}{}.tar.gz", IMAGE_URL_BASE, image.name);
317-
318-
println!("Downloading image: {image_name}");
319-
320313
// Check if file exists, if so verify SHA256
321314
if output_path.exists() {
322315
match image_verify_sha256(&output_path, image.sha256) {
@@ -342,7 +335,9 @@ async fn image_download(image_name: &str, output_dir: Option<String>, extract: b
342335
fs::create_dir_all(parent)?;
343336
}
344337

345-
println!("Starting download...");
338+
// Build download URL
339+
let download_url = format!("{}{}.tar.gz", IMAGE_URL_BASE, image.name);
340+
println!("Downloading: {download_url}");
346341

347342
// Use reqwest to download the file
348343
let mut response = reqwest::get(&download_url).await?;

0 commit comments

Comments
 (0)