mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
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.
This commit is contained in:
parent
41cab83fdb
commit
26dcbf5523
2 changed files with 0 additions and 55 deletions
14
.github/workflows/clippy.yml
vendored
14
.github/workflows/clippy.yml
vendored
|
@ -41,14 +41,6 @@ jobs:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: rustup show active-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
|
# Run
|
||||||
- name: Set LD_LIBRARY_PATH (Linux)
|
- name: Set LD_LIBRARY_PATH (Linux)
|
||||||
run: |
|
run: |
|
||||||
|
@ -88,9 +80,3 @@ jobs:
|
||||||
cargo dev new_lint --name new_late_pass --pass late
|
cargo dev new_lint --name new_late_pass --pass late
|
||||||
cargo check
|
cargo check
|
||||||
git reset --hard HEAD
|
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
|
|
||||||
|
|
41
.github/workflows/clippy_bors.yml
vendored
41
.github/workflows/clippy_bors.yml
vendored
|
@ -91,14 +91,6 @@ jobs:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: rustup show active-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
|
# Run
|
||||||
- name: Set LD_LIBRARY_PATH (Linux)
|
- name: Set LD_LIBRARY_PATH (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
@ -144,12 +136,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
OS: ${{ runner.os }}
|
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:
|
integration_build:
|
||||||
needs: changelog
|
needs: changelog
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -166,14 +152,6 @@ jobs:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: rustup show active-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
|
# Run
|
||||||
- name: Build Integration Test
|
- name: Build Integration Test
|
||||||
run: cargo test --test integration --features integration --no-run
|
run: cargo test --test integration --features integration --no-run
|
||||||
|
@ -193,11 +171,6 @@ jobs:
|
||||||
name: target
|
name: target
|
||||||
path: 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:
|
integration:
|
||||||
needs: integration_build
|
needs: integration_build
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -237,14 +210,6 @@ jobs:
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
run: rustup show active-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
|
# Download
|
||||||
- name: Download target dir
|
- name: Download target dir
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
@ -262,12 +227,6 @@ jobs:
|
||||||
INTEGRATION: ${{ matrix.integration }}
|
INTEGRATION: ${{ matrix.integration }}
|
||||||
RUSTUP_TOOLCHAIN: master
|
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
|
# 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
|
# bors the build completed, as there is no practical way to detect when a
|
||||||
# workflow is successful listening to webhooks only.
|
# workflow is successful listening to webhooks only.
|
||||||
|
|
Loading…
Reference in a new issue