mirror of https://github.com/lapce/lapce.git
add steps for caching
This commit is contained in:
parent
7f7d7c1558
commit
104bd4ce3b
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue