diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0f25a17..6109c236 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,6 +72,16 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + $VCPKG_DEFAULT_BINARY_CACHE + key: ${{ runner.os }}-cargo-stable-${{ hashFiles('Cargo.lock') }} - uses: egor-tensin/vs-shell@v2 with: arch: amd64 @@ -105,6 +115,15 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{matrix.toolchain}}-${{ hashFiles('Cargo.lock') }} - name: Install Rust uses: dtolnay/rust-toolchain@master with: @@ -126,6 +145,15 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-stable-${{ hashFiles('Cargo.lock') }} - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Install rust toolchain