Skip to content

Commit

Permalink
feat: ci caching
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggtro committed Sep 6, 2022
1 parent 1292cfe commit 69201e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -69,6 +70,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: doc
Expand Down Expand Up @@ -102,7 +104,7 @@ jobs:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true

- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: test
Expand All @@ -119,7 +121,7 @@ jobs:
toolchain: nightly
override: true
components: rustfmt

- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
Expand Down Expand Up @@ -155,6 +157,7 @@ jobs:
toolchain: nightly
components: clippy
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 69201e9

Please sign in to comment.