about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2020-12-10 09:36:19 +0100
committerflip1995 <philipp.krones@embecosm.com>2020-12-10 10:53:20 +0100
commit26dcbf5523fb95c2490862af37c7279244f9a912 (patch)
treefae885c2d8bd0deae5b2ade69d336a97c2ed0b49
parent41cab83fdb9d10d620c0529bc837a3dddff5dd5f (diff)
downloadrust-26dcbf5523fb95c2490862af37c7279244f9a912.tar.gz
rust-26dcbf5523fb95c2490862af37c7279244f9a912.zip
Stop caching on CI
The only thing we now cache is cargo-cache, which we only use for cache.
That's a catch-22 if I ever seen one. And for Clippy itself we always
want to do a clean build and not cache anything.
-rw-r--r--.github/workflows/clippy.yml14
-rw-r--r--.github/workflows/clippy_bors.yml41
2 files changed, 0 insertions, 55 deletions
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml
index 89be0e741aa..530e60001f7 100644
--- a/.github/workflows/clippy.yml
+++ b/.github/workflows/clippy.yml
@@ -41,14 +41,6 @@ jobs:
     - name: Install toolchain
       run: rustup show active-toolchain
 
-    - name: Cache cargo dir
-      uses: actions/cache@v2
-      with:
-        path: ~/.cargo
-        key: ${{ runner.os }}-x86_64-unknown-linux-gnu-v2-${{ hashFiles('Cargo.lock') }}
-        restore-keys: |
-          ${{ runner.os }}-x86_64-unknown-linux-gnu
-
     # Run
     - name: Set LD_LIBRARY_PATH (Linux)
       run: |
@@ -88,9 +80,3 @@ jobs:
         cargo dev new_lint --name new_late_pass --pass late
         cargo check
         git reset --hard HEAD
-
-    # Cleanup
-    - name: Run cargo-cache --autoclean
-      run: |
-        cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
-        cargo cache
diff --git a/.github/workflows/clippy_bors.yml b/.github/workflows/clippy_bors.yml
index af5ddc022d4..ae31534b71c 100644
--- a/.github/workflows/clippy_bors.yml
+++ b/.github/workflows/clippy_bors.yml
@@ -91,14 +91,6 @@ jobs:
     - name: Install toolchain
       run: rustup show active-toolchain
 
-    - name: Cache cargo dir
-      uses: actions/cache@v2
-      with:
-        path: ~/.cargo
-        key: ${{ runner.os }}-${{ matrix.host }}-v2-${{ hashFiles('Cargo.lock') }}
-        restore-keys: |
-          ${{ runner.os }}-${{ matrix.host }}
-
     # Run
     - name: Set LD_LIBRARY_PATH (Linux)
       if: runner.os == 'Linux'
@@ -144,12 +136,6 @@ jobs:
       env:
         OS: ${{ runner.os }}
 
-    # Cleanup
-    - name: Run cargo-cache --autoclean
-      run: |
-        cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
-        cargo cache
-
   integration_build:
     needs: changelog
     runs-on: ubuntu-latest
@@ -166,14 +152,6 @@ jobs:
     - name: Install toolchain
       run: rustup show active-toolchain
 
-    - name: Cache cargo dir
-      uses: actions/cache@v2
-      with:
-        path: ~/.cargo
-        key: ${{ runner.os }}-x86_64-unknown-linux-gnu-v2-${{ hashFiles('Cargo.lock') }}
-        restore-keys: |
-          ${{ runner.os }}-x86_64-unknown-linux-gnu
-
     # Run
     - name: Build Integration Test
       run: cargo test --test integration --features integration --no-run
@@ -193,11 +171,6 @@ jobs:
         name: target
         path: target
 
-    # Cleanup
-    - name: Run cargo-cache --autoclean
-      run: |
-        cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
-        cargo cache
   integration:
     needs: integration_build
     strategy:
@@ -237,14 +210,6 @@ jobs:
     - name: Install toolchain
       run: rustup show active-toolchain
 
-    - name: Cache cargo dir
-      uses: actions/cache@v2
-      with:
-        path: ~/.cargo
-        key: ${{ runner.os }}-x86_64-unknown-linux-gnu-v2-${{ hashFiles('Cargo.lock') }}
-        restore-keys: |
-          ${{ runner.os }}-x86_64-unknown-linux-gnu
-
     # Download
     - name: Download target dir
       uses: actions/download-artifact@v1
@@ -262,12 +227,6 @@ jobs:
         INTEGRATION: ${{ matrix.integration }}
         RUSTUP_TOOLCHAIN: master
 
-    # Cleanup
-    - name: Run cargo-cache --autoclean
-      run: |
-        cargo install cargo-cache --no-default-features --features ci-autoclean cargo-cache
-        cargo cache
-
   # These jobs doesn't actually test anything, but they're only used to tell
   # bors the build completed, as there is no practical way to detect when a
   # workflow is successful listening to webhooks only.