add rust build caching
All checks were successful
cargo_test_bench / Run Benchmarks (push) Successful in 2m22s
cargo_test_bench / Run Tests (push) Successful in 1m0s

This commit is contained in:
Champlin, Saji 2024-08-01 10:09:47 -05:00
parent 2011ece21d
commit a075bdfe57

View file

@ -8,15 +8,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- run: cargo test --all-features
bench:
name: Run Benchmarks
runs-on: ubuntu-latest
steps:
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/Swatinem/rust-cache@v2
- run: git checkout HEAD~
- run: cargo bench
- run: git checkout master