diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24659a87..3ebe86ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,17 @@ jobs: with: fetch-depth: 0 + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Get descriptive libloot version id: get-libloot-version shell: bash @@ -139,6 +150,17 @@ jobs: with: fetch-depth: 0 + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Rust i686-pc-windows-msvc target run: rustup target add i686-pc-windows-msvc if: matrix.platform == 'Win32' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17d5b491..abb0d252 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,17 @@ jobs: with: fetch-depth: 0 + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Rust i686-pc-windows-msvc target run: rustup target add i686-pc-windows-msvc if: matrix.platform == 'Win32'