From 2eb0f357655acd78615654d337834d95fd70c028 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 5 Sep 2024 17:36:53 -0500 Subject: [PATCH] Use `Swatinem/rust-cache` instead of `actions/cache` --- .github/workflows/apple.yml | 12 +----------- .github/workflows/linux.yml | 12 +----------- .github/workflows/windows.yml | 12 +----------- 3 files changed, 3 insertions(+), 33 deletions(-) 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: |