Skip to content

Commit 67e8fcd

Browse files
committed
install bencher in init
1 parent 907f1ab commit 67e8fcd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

crates/xtask/src/main.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,34 @@ impl Xtasks {
14981498
)?;
14991499
}
15001500

1501+
// install bencher
1502+
// linux curl --proto '=https' --tlsv1.2 -sSfL https://bencher.dev/download/install-cli.sh | sh
1503+
// windows irm https://bencher.dev/download/install-cli.ps1 | iex
1504+
1505+
if cfg!(target_os = "windows") {
1506+
Self::run_system_command(
1507+
&app_settings,
1508+
"powershell",
1509+
"Failed to install bencher",
1510+
vec![
1511+
"-Command",
1512+
"irm https://bencher.dev/download/install-cli.ps1 | iex",
1513+
],
1514+
None,
1515+
)?;
1516+
} else {
1517+
Self::run_system_command(
1518+
&app_settings,
1519+
"sh",
1520+
"Failed to install bencher",
1521+
vec![
1522+
"-c",
1523+
"curl --proto '=https' --tlsv1.2 -sSfL https://bencher.dev/download/install-cli.sh | sh",
1524+
],
1525+
None,
1526+
)?;
1527+
}
1528+
15011529
// install cargo mdbook
15021530
Self::run_system_command(
15031531
&app_settings,

0 commit comments

Comments
 (0)