add rust build caching
This commit is contained in:
parent
2011ece21d
commit
a075bdfe57
|
@ -8,15 +8,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
|
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||||
- run: cargo test --all-features
|
- run: cargo test --all-features
|
||||||
bench:
|
bench:
|
||||||
name: Run Benchmarks
|
name: Run Benchmarks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||||
|
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||||
- run: git checkout HEAD~
|
- run: git checkout HEAD~
|
||||||
- run: cargo bench
|
- run: cargo bench
|
||||||
- run: git checkout master
|
- run: git checkout master
|
||||||
|
|
Loading…
Reference in a new issue