fix(ci): use shallow clone with tag fetch to avoid 45k commit download
Some checks failed
Build and Test / build (push) Successful in 1h11m46s
Release Build / build-linux (push) Failing after 2m32s
Release Build / build-macos (arm64, macos-14) (push) Has been cancelled
Release Build / build-macos (x86_64, macos-13) (push) Has been cancelled
Release Build / build-windows (push) Has been cancelled
Release Build / publish-release (push) Has been cancelled

fetch-depth: 0 downloads the entire FreeCAD history (45k+ commits),
causing 13+ minute checkout times. Switch to fetch-depth: 1 with a
separate lightweight tag fetch for git describe.
This commit is contained in:
2026-02-03 12:13:01 -06:00
parent 7ce21aceb6
commit 8042b7dcc8
2 changed files with 17 additions and 7 deletions

View File

@@ -34,7 +34,10 @@ jobs:
uses: https://github.com/actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1
- name: Fetch tags (for git describe)
run: git fetch --tags --no-recurse-submodules origin
- name: Install pixi
run: |

View File

@@ -43,8 +43,10 @@ jobs:
uses: https://github.com/actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
fetch-depth: 1
- name: Fetch tags
run: git fetch --tags --no-recurse-submodules origin
- name: Install pixi
run: |
@@ -140,8 +142,10 @@ jobs:
uses: https://github.com/actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
fetch-depth: 1
- name: Fetch tags
run: git fetch --tags --no-recurse-submodules origin
- name: Install pixi
run: |
@@ -217,8 +221,11 @@ jobs:
uses: https://github.com/actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
fetch-depth: 1
- name: Fetch tags
shell: bash
run: git fetch --tags --no-recurse-submodules origin
- name: Install pixi
shell: bash