Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

ci(workflows): replace recursive submodule checkout with parallel script

Steven Enamakel4eda9353bbea
diff --git a/.github/workflows/ci-lanes.yml b/.github/workflows/ci-lanes.yml
index d1eb3aff78..e0fe1af9d7 100644
--- a/.github/workflows/ci-lanes.yml
+++ b/.github/workflows/ci-lanes.yml
@@ -55,7 +55,9 @@ jobs:
# Full history: the module-pin monotonicity check and diff-cover
# both compare against the base branch.
fetch-depth: 0
- submodules: recursive
+ # Submodules come from the step below: only the ones a build reads,
+ # fetched in parallel (checkout fetches every nested one serially).
+ submodules: false
persist-credentials: false
# Deliberate. This job only runs when ci-fast.yml's route job (run
# from main, never from the PR) found the PR author and pusher to be
@@ -66,6 +68,9 @@ jobs:
# Without the opt-in, checkout@v7 refuses every fork PR here.
allow-unsafe-pr-checkout: true
+ - name: Check out submodules
+ run: bash scripts/ci/checkout-submodules.sh
+
- name: Detect changed areas
id: filter
uses: dorny/paths-filter@v4
@@ -238,7 +243,8 @@ jobs:
ref: refs/pull/${{ inputs.pr-number }}/merge
# Only the checks group compares against the base branch.
fetch-depth: ${{ matrix.group == 'checks' && '0' || '1' }}
- submodules: recursive
+ # Submodules come from the step below (see the ex63 job).
+ submodules: false
persist-credentials: false
- name: Trust the workspace for git
@@ -246,6 +252,9 @@ jobs:
if: matrix.container != ''
run: git config --global --add safe.directory '*'
+ - name: Check out submodules
+ run: bash scripts/ci/checkout-submodules.sh
+
- name: Cache Rust build artifacts
if: matrix.group == 'rust-lint' || matrix.group == 'rust-cov' || matrix.group == 'tauri'
uses: Swatinem/rust-cache@v2