From 9729dfc0568656d7debcd566e9e6fbd0db32f7ce Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 23 Jun 2021 15:02:54 +0000 Subject: [PATCH] ci: make it faster (#10920) ...by avoiding a full clone of crates.io index history. --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7885b9d027..da4c7a1816 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,6 +216,16 @@ jobs: with: cache-path: ./target + - name: Shallow clone crates.io index + shell: bash + run: | + if [ ! -d ~/.cargo/registry/index/github.com-1ecc6299db9ec823/.git ] + then + git clone --depth 1 --no-checkout \ + https://github.com/rust-lang/crates.io-index \ + ~/.cargo/registry/index/github.com-1ecc6299db9ec823 + fi + - name: test_format.js if: matrix.kind == 'lint' run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check