From 1292abdfd38e7fc82fe92a4c2c295362d13f8120 Mon Sep 17 00:00:00 2001 From: Takeshi Watanabe Date: Thu, 24 Dec 2020 19:14:53 +0900 Subject: [PATCH] Setup cache for cargo --- .github/workflows/rust.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9548378..2129baf 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,7 +17,14 @@ jobs: steps: - uses: actions/checkout@v2 with: - submodules: true + submodules: true + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install intel compute runtime run: | sudo add-apt-repository ppa:intel-opencl/intel-opencl