Skip to content

Commit d27a1d7

Browse files
committed
just install from source
1 parent e260a56 commit d27a1d7

File tree

1 file changed

+16
-25
lines changed

1 file changed

+16
-25
lines changed

crates/xtask/src/main.rs

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,31 +1501,22 @@ impl Xtasks {
15011501
// install bencher
15021502
// linux curl --proto '=https' --tlsv1.2 -sSfL https://bencher.dev/download/install-cli.sh | sh
15031503
// 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-
"pwsh",
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-
1504+
Self::run_system_command(
1505+
&app_settings,
1506+
"cargo",
1507+
"Failed to install bencher",
1508+
vec![
1509+
"install",
1510+
"--git",
1511+
"https://github.com/bencherdev/bencher",
1512+
"--branch",
1513+
"main",
1514+
"--locked",
1515+
"--force",
1516+
"bencher_cli",
1517+
],
1518+
None,
1519+
)?;
15291520
// install cargo mdbook
15301521
Self::run_system_command(
15311522
&app_settings,

0 commit comments

Comments
 (0)