gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 499HTML 254C 19JavaScript 81371 Definitions

Add caching to CI (#418)

7c2c77842f3567a8febaea8fda62e322be03939d · by TimJentzsch · (3 years ago) · parent e55c9a562 · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +5 −1

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4aa7091e9..ebca2eebf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,6 +15,7 @@ jobs:
     steps:
       - uses: actions/checkout@v3
       - uses: dtolnay/rust-toolchain@stable
+      - uses: Leafwing-Studios/cargo-cache@v1
       - run: cargo build --no-default-features
       - run: cargo test --no-default-features
 
@@ -60,6 +61,7 @@ jobs:
     steps:
       - uses: actions/checkout@v3
       - uses: dtolnay/rust-toolchain@stable
+      - uses: Leafwing-Studios/cargo-cache@v1
       - run: cargo build --no-default-features --features std
       - run: cargo test --no-default-features --features std
 
@@ -68,11 +70,11 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
-      - uses: dtolnay/rust-toolchain@stable
       - uses: dtolnay/rust-toolchain@master
         with:
           toolchain: stable
           components: rustfmt
+      - uses: Leafwing-Studios/cargo-cache@v1
       - run: cargo fmt --all -- --check
 
   clippy:
@@ -84,6 +86,7 @@ jobs:
         with:
           toolchain: nightly
           components: clippy
+      - uses: Leafwing-Studios/cargo-cache@v1
       - run: cargo +nightly clippy --workspace -- -D warnings
 
   doc:
@@ -95,6 +98,7 @@ jobs:
         with:
           toolchain: stable
           components: clippy
+      - uses: Leafwing-Studios/cargo-cache@v1
       - run: cargo doc
         env:
           RUSTDOCFLAGS: "-D warnings"