summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2021-06-23 15:02:54 +0000
committerBert Belder <bertbelder@gmail.com>2021-06-23 19:36:04 +0000
commit6f8975ad786e3c8f7cc6fe0f374e704f06741b18 (patch)
tree25a338e20f66f275ec8cb5ca90770766e3ce708c
parent5a250b9e5529fa6af797a9ce5c3e612be49ea538 (diff)
ci: make it faster (#10920)
...by avoiding a full clone of crates.io index history.
-rw-r--r--.github/workflows/ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7885b9d02..da4c7a181 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