Collect build timings

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2022-05-03 17:12:42 -07:00
parent 5173325a90
commit e511e51490
2 changed files with 17 additions and 1 deletions

View File

@ -40,6 +40,22 @@ jobs:
sudo -E $(command -v cargo) test
sudo -E $(command -v cargo) test --all-features
# Collect build timings
# See https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html#cargo---timings
timings:
name: Timings
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- run: cargo build --all-features --timings
- uses: actions/upload-artifact@v3
with:
name: cargo-timing
path: target/cargo-timings/cargo-timing.html
if-no-files-found: error
deny:
name: Deny
runs-on: ubuntu-latest

View File

@ -1,3 +1,3 @@
[toolchain]
channel = "1.59"
channel = "1.60"
components = ["rustfmt", "clippy"]