From 2310936ff2896c4743037374d624295d887ca867 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Sun, 31 Oct 2021 08:35:16 -0400 Subject: [PATCH] Use different caching for MIRI runs (#892) * Use different caching for MIRI runs * Also cache cargo --- .github/workflows/miri.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/miri.yaml b/.github/workflows/miri.yaml index 30826f30f3eb..b12a42f55786 100644 --- a/.github/workflows/miri.yaml +++ b/.github/workflows/miri.yaml @@ -34,13 +34,17 @@ jobs: - uses: actions/checkout@v2 with: submodules: true - - uses: actions/cache@v2 + - name: Cache Cargo + uses: actions/cache@v2 with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-miri-${{ hashFiles('**/Cargo.lock') }} + path: /github/home/.cargo + # this key equals the ones on `linux-build-lib` for re-use + key: cargo-cache2- + - name: Cache Rust dependencies + uses: actions/cache@v2 + with: + path: /github/home/target + key: ${{ runner.os }}-${{ matrix.arch }}-miri-cache-${{ matrix.rust }} - name: Setup Rust toolchain run: | rustup toolchain install ${{ matrix.rust }}