diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9f4562f..02050c0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1e05a1e2..5ac33a9c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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