Add rust-cache in CI workflow

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-30 12:50:37 +01:00 committed by Scott Boggs
parent f830671ee9
commit e328924193
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose
- name: Run tests
@ -26,6 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- name: Build-examples
run: cargo build --examples --verbose
@ -34,6 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.65.0
@ -45,6 +48,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.65.0