This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 2310936 Use different caching for MIRI runs (#892)
2310936 is described below
commit 2310936ff2896c4743037374d624295d887ca867
Author: Andrew Lamb <[email protected]>
AuthorDate: Sun Oct 31 08:35:16 2021 -0400
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 30826f3..b12a42f 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 }}