mirror of https://github.com/astral-sh/ruff
Add sccache to CI tests
This commit is contained in:
parent
88c0106421
commit
8e2e93c58d
|
|
@ -88,6 +88,10 @@ jobs:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: "cargo test | ${{ matrix.os }}"
|
name: "cargo test | ${{ matrix.os }}"
|
||||||
|
env:
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
|
RUSTC_WRAPPER: "sccache"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: "Install Rust toolchain"
|
- name: "Install Rust toolchain"
|
||||||
|
|
@ -96,7 +100,10 @@ jobs:
|
||||||
uses: taiki-e/install-action@v2
|
uses: taiki-e/install-action@v2
|
||||||
with:
|
with:
|
||||||
tool: cargo-insta
|
tool: cargo-insta
|
||||||
- uses: Swatinem/rust-cache@v2
|
- name: Set up basic Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
- name: Set up sccache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
- name: "Run tests (Ubuntu)"
|
- name: "Run tests (Ubuntu)"
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
run: cargo insta test --all --all-features --unreferenced reject
|
run: cargo insta test --all --all-features --unreferenced reject
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue