diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30fe4ed..d472ce9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -79,6 +79,10 @@ jobs: target: ${{ matrix.target }} profile: minimal components: clippy + - name: Rust Cache + uses: Swatinem/rust-cache@v2.2.1 + with: + key: ${{ matrix.target }} - name: Install Cross uses: actions-rs/install@v0.1 with: @@ -117,6 +121,8 @@ jobs: default: true profile: minimal components: rustfmt + - name: Rust Cache + uses: Swatinem/rust-cache@v2.2.1 - name: Format uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0bb15e..d024624 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -65,13 +65,17 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install Rust uses: actions-rs/toolchain@v1 with: toolchain: stable target: ${{ matrix.target }} profile: minimal + - name: Rust Cache + uses: Swatinem/rust-cache@v2.2.1 + with: + key: ${{ matrix.target }} - name: Archive Release uses: taiki-e/upload-rust-binary-action@v1 with: