diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 5680ffd63..bb233c843 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,6 +8,11 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: | + ~/.cargo + key: ${{ github.job }}-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} - run: | rustup component list cargo install typos-cli --version 1.26.8 diff --git a/.github/workflows/sdk.yaml b/.github/workflows/sdk.yaml index 98b283930..da7d528d1 100644 --- a/.github/workflows/sdk.yaml +++ b/.github/workflows/sdk.yaml @@ -13,12 +13,8 @@ jobs: - 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') }} + ~/.cargo + key: ${{ github.job }}-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} - name: Setup Rust ${{ matrix.rust-version }} run: rustup toolchain install ${{ matrix.rust-version }} - name: Display Cargo version @@ -37,12 +33,8 @@ jobs: - 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') }} + ~/.cargo + key: ${{ github.job }}-${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} - name: Setup Rust ${{ matrix.rust-version }} run: rustup toolchain install ${{ matrix.rust-version }} - name: Display Cargo version