From 133b05b3a43457b7918c4fb2be3d2ab0e8fa4e2b Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Fri, 13 Mar 2020 19:24:17 +0100 Subject: [PATCH] [gh actions] Cache target dir for specific rustc version --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c99974013e07..884a8e466f68 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"