Fix double cache read in CI (#6948)

This commit is contained in:
Reilly Wood 2022-10-30 00:24:10 -07:00 committed by GitHub
parent 457514590d
commit f44f3a8af1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,18 +22,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Rust toolchain - name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 uses: actions-rust-lang/setup-rust-toolchain@v1.3.4
# makes ci use rust-toolchain.toml
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# override: true
# components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2.0.1
with:
key: "v2" # increment this to bust the cache if needed
- name: Rustfmt - name: Rustfmt
uses: actions-rs/cargo@v1.0.1 uses: actions-rs/cargo@v1.0.1
@ -74,17 +64,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Rust toolchain - name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 uses: actions-rust-lang/setup-rust-toolchain@v1.3.4
# makes ci use rust-toolchain.toml
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# override: true
- uses: Swatinem/rust-cache@v2.0.1
with:
key: ${{ matrix.style }}v3 # increment this to bust the cache if needed
- name: Tests - name: Tests
uses: actions-rs/cargo@v1.0.1 uses: actions-rs/cargo@v1.0.1
@ -110,17 +91,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Rust toolchain - name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 uses: actions-rust-lang/setup-rust-toolchain@v1.3.4
# makes ci use rust-toolchain.toml
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# override: true
- uses: Swatinem/rust-cache@v2.0.1
with:
key: "2" # increment this to bust the cache if needed
- name: Install Nushell - name: Install Nushell
uses: actions-rs/cargo@v1.0.1 uses: actions-rs/cargo@v1.0.1
@ -161,13 +133,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Rust toolchain - name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 uses: actions-rust-lang/setup-rust-toolchain@v1.3.4
# makes ci use rust-toolchain.toml
# with:
# profile: minimal
# toolchain: ${{ matrix.rust }}
# override: true
- name: Clippy - name: Clippy
uses: actions-rs/cargo@v1.0.1 uses: actions-rs/cargo@v1.0.1