From f4c2d2dbbfbdd59ba060448a3feb908646237492 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 8 Feb 2021 15:59:29 +1300 Subject: [PATCH] more cache tricks --- .github/workflows/rust.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8c07ca8..3bfe955 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -73,20 +73,29 @@ jobs: target: ${{ matrix.target }} override: true - - name: Configure cargo caching + - name: Configure linux caching + if: ${{ matrix.os != 'windows-latest' }} uses: actions/cache@v2 with: key: ${{ matrix.os }}-${{ matrix.target }} path: | - ${{ env.HOME }}/.cargo" - target + ./target + /usr/share/rust/.cargo/.cargo/bin + /usr/share/rust/.cargo/.cargo/registry/index + /usr/share/rust/.cargo/.cargo/registry/cache + /usr/share/rust/.cargo/.cargo/git/db - - name: Configure vcpkg caching + - name: Configure windows caching if: ${{ matrix.os == 'windows-latest' }} uses: actions/cache@v2 with: key: ${{ matrix.os }}-${{ matrix.target }} - path: C:\vcpkg\archives + path: | + C:\vcpkg\archives + C:\Rust\.cargo\bin + C:\Rust\.cargo\registry\index + C:\Rust\.cargo\registry\cache + C:\Rust\.cargo\git\db - name: Install openssl (apt armv7) if: ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}