mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +00:00
Add Swatinem/rust-cache to benchmark-compare job (#3637)
This commit is contained in:
parent
f59a22b6e5
commit
c42f8b93d2
1 changed files with 49 additions and 47 deletions
8
.github/workflows/benchmark.yaml
vendored
8
.github/workflows/benchmark.yaml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
- name: "PR - Install Rust toolchain"
|
- name: "PR - Install Rust toolchain"
|
||||||
run: rustup show
|
run: rustup show
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: "PR - Build benchmarks"
|
- name: "PR - Build benchmarks"
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
@ -78,9 +78,11 @@ jobs:
|
||||||
- name: "Install Rust toolchain"
|
- name: "Install Rust toolchain"
|
||||||
run: rustup show
|
run: rustup show
|
||||||
|
|
||||||
|
- name: "Install cargo-binstall"
|
||||||
|
uses: taiki-e/install-action@cargo-binstall
|
||||||
|
|
||||||
- name: "Install critcmp"
|
- name: "Install critcmp"
|
||||||
# Use debug build: Building takes much longer than the "slowness" of using the debug build.
|
run: cargo binstall critcmp -y
|
||||||
run: cargo install --debug critcmp
|
|
||||||
|
|
||||||
- name: "Linux | Download PR benchmark results"
|
- name: "Linux | Download PR benchmark results"
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue