[ci] Cache .git/modules with submodules for proper restoration

Signed-off-by: zyphlar <zyphlar@gmail.com>
This commit is contained in:
zyphlar
2026-01-12 16:53:02 -08:00
parent 5fb56d9abd
commit c0373e4557

View File

@@ -97,6 +97,7 @@ jobs:
- uses: actions/cache@v4
with:
path: |
.git/modules
3party/CMake-MetalShaderSupport
3party/Vulkan-Headers
3party/boost
@@ -119,11 +120,15 @@ jobs:
3party/utfcpp
tools/kothic
tools/osmctools
key: submodules-cache-${{ steps.date.outputs.date }}
key: submodules-${{ hashFiles('.gitmodules') }}
restore-keys: |
submodules-
- name: Parallel submodules checkout
- name: Sync and update submodules
shell: bash
run: git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20))
run: |
git submodule sync --recursive
git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20))
- name: Lint
shell: bash
@@ -207,6 +212,7 @@ jobs:
- uses: actions/cache@v4
with:
path: |
.git/modules
3party/CMake-MetalShaderSupport
3party/Vulkan-Headers
3party/boost
@@ -229,11 +235,15 @@ jobs:
3party/utfcpp
tools/kothic
tools/osmctools
key: submodules-cache-${{ steps.date.outputs.date }}
key: submodules-${{ hashFiles('.gitmodules') }}
restore-keys: |
submodules-
- name: Parallel submodules checkout
- name: Sync and update submodules
shell: bash
run: git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20))
run: |
git submodule sync --recursive
git submodule update --depth 1 --init --recursive --jobs=$(($(nproc) * 20))
- name: Configure ccache
uses: https://github.com/hendrikmuhs/ccache-action@v1.2