fix(ci): use shallow clone with tag fetch to avoid 45k commit download
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:
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user