Skip to content

Commit ae739ef

Browse files
committed
fix init code
1 parent 1183a1c commit ae739ef

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/bencher_on_pr_or_fork.yml

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13+
- name: Rust Cache
14+
uses: Swatinem/[email protected]
15+
with:
16+
# reasoning: we want to cache xtask, most of the jobs in the matrix will be sped up a good bit thanks to that
17+
save-if: ${{ github.ref == 'refs/heads/main' }}
18+
cache-all-crates: true
19+
- name: Run `cargo xtask init`
20+
run: |
21+
cargo xtask init
1322
- name: Run `cargo xtask bench` and save results
1423
run: |
1524
cargo xtask bench > benchmark_results.txt

crates/xtask/src/main.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1640,13 +1640,6 @@ impl Xtasks {
16401640
},
16411641
});
16421642

1643-
// also run a benchmark
1644-
// on non-main branches this will just dry run
1645-
output.push(App {
1646-
global_args: default_args.clone(),
1647-
subcmd: Xtasks::Bencher { publish: true },
1648-
});
1649-
16501643
// and finally run tests with coverage
16511644
output.push(App {
16521645
global_args: default_args

0 commit comments

Comments
 (0)