Git Checkout Acceleration
Avrea can prepare a workflow's Git repository from a datacenter-local mirror
before your first step runs. The normal actions/checkout step remains in
your workflow and remains authoritative, but it can reuse the prepared
repository instead of downloading the same Git objects from GitHub.
Git checkout acceleration supports Linux and macOS runners and is off by default.
Enabling
Section titled “Enabling”Turn on Git Checkout Acceleration at the organization or repository level in the Avrea console, or use the CLI:
avr settings set cache.git.enabled trueNo workflow change is required for the root repository:
jobs: build: runs-on: avrea-ubuntu-latest steps: - uses: actions/checkout@v7 - run: ./build.shEnabling the setting creates and maintains an Avrea Git mirror. A new mirror may need an initial synchronization, so the first workflow can still fetch from GitHub while later workflows use the local mirror. The mirror page covers choosing where the copy is stored and cloning from it.
When the repository is prepared
Section titled “When the repository is prepared”How early Avrea can prepare the repository depends on how your runners are registered (see GitHub App permissions):
- Repository runners. Each runner is registered for one repository, so Avrea prepares the checkout while the runner VM starts, before GitHub assigns the job.
- Organization runners. Runners join an organization runner group and learn which repository and commit to build only when GitHub assigns the job. Avrea then fetches the repository from the local mirror during the job's Set up runner step, before your first step runs. This still avoids downloading from GitHub, but the fetch is part of the job's run time.
If preparation fails, the workflow falls back to the regular
actions/checkout path and fetches the repository directly from GitHub.
Submodules
Section titled “Submodules”Submodule precheckout is a separate setting. It prepares authorized Git
objects, but it does not change the workflow's requested checkout behavior.
Keep using the submodules input on actions/checkout.
| Mode | Prepared repositories | actions/checkout input |
|---|---|---|
none | Root repository only | Any value |
top-level | Root and eligible direct submodules | submodules: true or recursive |
recursive | Root and eligible nested submodules | submodules: recursive |
Select a mode in the console, or use the CLI:
avr settings set cache.git-submodules.mode top-levelFor direct submodules:
- uses: actions/checkout@v7 with: submodules: trueFor nested submodules:
avr settings set cache.git-submodules.mode recursive- uses: actions/checkout@v7 with: submodules: recursiveAvrea discovers submodules from the root repository's pinned commit and authorizes each repository server-side. An eligible private submodule must be covered by the same GitHub App installation and have a ready Avrea Git mirror. When settings are applied at repository scope, enable Git Checkout Acceleration for both the root and each private submodule repository that should be preloaded. Ineligible or unavailable submodules remain ordinary GitHub checkout traffic.
Recursive discovery is bounded for runner startup safety. Submodules beyond
the supported depth or repository count are fetched normally by
actions/checkout.
Git LFS
Section titled “Git LFS”Git checkout acceleration prepares Git objects but does not download Git LFS
payloads. Enable the separate Git LFS Cache and keep using
lfs: true when the workflow needs LFS files:
- uses: actions/checkout@v7 with: lfs: true submodules: recursiveThe Git LFS cache continues to use GitHub for authorization and caches only the resulting object downloads.
Current limitations
Section titled “Current limitations”- Only GitHub repositories are eligible for Avrea Git mirrors.
- Windows runners use the normal GitHub checkout path.
- On organization runners the repository is fetched when the job starts, in Set up runner, not while the runner starts.
- Additional repositories selected dynamically by later checkout steps are not root-preloaded.
- Submodule precheckout accelerates only server-authorized, ready mirrors.