diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e9363b..3ae03fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,20 @@ jobs: with: components: clippy, rustfmt - run: cp crates/playground/src/playground.template.rs crates/playground/src/playground.rs + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }} + ${{ runner.os }}-cargo-target - name: Validate formatting run: cargo fmt --all -- --check - name: Validate documentation