From 8042b7dcc8eb20224347bdf50771f6dcbe362c7e Mon Sep 17 00:00:00 2001 From: forbes-0023 Date: Tue, 3 Feb 2026 12:13:01 -0600 Subject: [PATCH] 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. --- .gitea/workflows/build.yml | 5 ++++- .gitea/workflows/release.yml | 19 +++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index d90d9f4cd6..ec4e561200 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index c5c43f76d0..79ad4288ab 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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