From 45249422b16c01f5a8502a045bdd3960a84eb62d Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Mon, 18 Oct 2021 13:50:43 -0300 Subject: [PATCH] Fetch CI submodules in parallel --- .drone.jsonnet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 91d76da80..744ad55bc 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -16,10 +16,11 @@ local default_deps = ['g++'] + default_deps_nocxx; local default_windows_deps = ['mingw-w64', 'zip', 'nsis']; local docker_base = 'registry.oxen.rocks/lokinet-ci-'; +local submodule_commands = ['git fetch --tags', 'git submodule update --init --recursive --depth=1 --jobs=4']; local submodules = { name: 'submodules', image: 'drone/git', - commands: ['git fetch --tags', 'git submodule update --init --recursive --depth=1'], + commands: submodule_commands, }; local apt_get_quiet = 'apt-get -o=Dpkg::Use-Pty=0 -q'; @@ -229,7 +230,7 @@ local mac_builder(name, name: name, platform: { os: 'darwin', arch: 'amd64' }, steps: [ - { name: 'submodules', commands: ['git fetch --tags', 'git submodule update --init --recursive'] }, + { name: 'submodules', commands: submodule_commands }, { name: 'build', environment: { SSH_KEY: { from_secret: 'SSH_KEY' } },