From 104bd4ce3be20230870330da9897e1d7a10cfbcb Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Sun, 19 Jun 2022 23:21:11 +0900 Subject: [PATCH] add steps for caching --- .github/workflows/ci.yml | 5 +++-- .github/workflows/pr.yml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) 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