File tree Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Original file line number Diff line number Diff line change @@ -1501,31 +1501,22 @@ impl Xtasks {
1501
1501
// install bencher
1502
1502
// linux curl --proto '=https' --tlsv1.2 -sSfL https://bencher.dev/download/install-cli.sh | sh
1503
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
- "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
+ ) ?;
1529
1520
// install cargo mdbook
1530
1521
Self :: run_system_command (
1531
1522
& app_settings,
You can’t perform that action at this time.
0 commit comments