diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c99974013e0..884a8e466f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,12 @@ jobs: path: ~/.cargo/bin key: cargo-installed-crates-${{ matrix.os }} + - name: Cache target dir + uses: actions/cache@v1.1.2 + with: + path: target + key: target-dir-${{ matrix.os }}-${{ hashFiles('rust-toolchain') }} + - name: Prepare dependencies run: | git config --global user.email "user@example.com"