ci: Add ci cache (#256)

This commit is contained in:
evenyag
2022-09-14 16:06:59 +08:00
committed by GitHub
parent 7dee7199dc
commit 0dce8946d4
3 changed files with 11 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ jobs:
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.0.0
- uses: actions-rs/cargo@v1
with:
command: check
@@ -37,6 +39,8 @@ jobs:
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.0.0
- uses: actions-rs/cargo@v1
with:
command: test
@@ -60,6 +64,8 @@ jobs:
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.0.0
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
@@ -78,6 +84,8 @@ jobs:
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2.0.0
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with: