From 0e5a259d14ee28786f4aa3dac9946f0a6a508bd1 Mon Sep 17 00:00:00 2001 From: forbes Date: Sat, 7 Feb 2026 10:42:48 -0600 Subject: [PATCH] fix(ci): fetch only latest tag and add patchelf build dep - Change both build.yml and release.yml to fetch only the latest v* tag via git ls-remote instead of fetching all tags - Add patchelf as a Linux build dependency in recipe.yaml to fix rattler-build packaging failure --- .gitea/workflows/build.yml | 8 ++++++-- .gitea/workflows/release.yml | 8 ++++++-- package/rattler-build/recipe.yaml | 4 ++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2a13fb4765..886ddee350 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -47,8 +47,12 @@ jobs: submodules: recursive fetch-depth: 1 - - name: Fetch tags (for git describe) - run: git fetch --no-recurse-submodules --force --depth=1 origin '+refs/tags/*:refs/tags/*' + - name: Fetch latest tag (for git describe) + run: | + latest_tag=$(git ls-remote --tags --sort=-v:refname origin 'refs/tags/v*' | head -n1 | awk '{print $2}') + if [ -n "$latest_tag" ]; then + git fetch --no-recurse-submodules --force --depth=1 origin "+${latest_tag}:${latest_tag}" + fi - name: Install pixi run: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d6d7a19dd2..1904aff212 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -57,8 +57,12 @@ jobs: submodules: recursive fetch-depth: 1 - - name: Fetch tags - run: git fetch --tags --force --no-recurse-submodules origin + - name: Fetch latest tag (for git describe) + run: | + latest_tag=$(git ls-remote --tags --sort=-v:refname origin 'refs/tags/v*' | head -n1 | awk '{print $2}') + if [ -n "$latest_tag" ]; then + git fetch --no-recurse-submodules --force --depth=1 origin "+${latest_tag}:${latest_tag}" + fi - name: Install pixi run: | diff --git a/package/rattler-build/recipe.yaml b/package/rattler-build/recipe.yaml index d99238ca88..9b33accd80 100644 --- a/package/rattler-build/recipe.yaml +++ b/package/rattler-build/recipe.yaml @@ -25,6 +25,10 @@ requirements: - qt6-main>=6.8,<6.9 - swig >=4.0,<4.4 + - if: linux + then: + - patchelf + - if: linux and x86_64 then: - clang