add steps for caching

This commit is contained in:
Takayuki Maeda 2022-06-19 23:21:11 +09:00
parent 7f7d7c1558
commit 104bd4ce3b
2 changed files with 6 additions and 2 deletions

View File

@ -27,8 +27,9 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
- name: Build
uses: actions-rs/cargo@v1
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build

View File

@ -27,6 +27,8 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: test
@ -43,6 +45,7 @@ jobs:
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt