diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml index 8e46ec30..b9b3a0b9 100644 --- a/.github/workflows/apple.yml +++ b/.github/workflows/apple.yml @@ -22,17 +22,7 @@ jobs: with: toolchain: stable - - name: Emit rustc version - run: | - rustc --version > .rustc-version - - - uses: actions/cache@v4 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }} + - uses: Swatinem/rust-cache@v2 - name: Build run: | diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 364d982e..f5c4c9f5 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -27,17 +27,7 @@ jobs: with: toolchain: stable - - name: Emit rustc version - run: | - rustc --version > .rustc-version - - - uses: actions/cache@v4 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }} + - uses: Swatinem/rust-cache@v2 - name: Build run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2f2b5f3c..791286ab 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,17 +22,7 @@ jobs: with: toolchain: stable - - name: Emit rustc version - run: | - rustc --version > .rustc-version - - - uses: actions/cache@v4 - with: - path: | - C:/Rust/.cargo/registry - C:/Rust/.cargo/git - target - key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }} + - uses: Swatinem/rust-cache@v2 - name: Build run: |