fix(ci): fetch only latest tag and add patchelf build dep
Some checks failed
Build and Test / build (pull_request) Has been cancelled
Some checks failed
Build and Test / build (pull_request) Has been cancelled
- 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
This commit is contained in:
@@ -47,8 +47,12 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch tags (for git describe)
|
- name: Fetch latest tag (for git describe)
|
||||||
run: git fetch --no-recurse-submodules --force --depth=1 origin '+refs/tags/*:refs/tags/*'
|
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
|
- name: Install pixi
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -57,8 +57,12 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch tags
|
- name: Fetch latest tag (for git describe)
|
||||||
run: git fetch --tags --force --no-recurse-submodules origin
|
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
|
- name: Install pixi
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ requirements:
|
|||||||
- qt6-main>=6.8,<6.9
|
- qt6-main>=6.8,<6.9
|
||||||
- swig >=4.0,<4.4
|
- swig >=4.0,<4.4
|
||||||
|
|
||||||
|
- if: linux
|
||||||
|
then:
|
||||||
|
- patchelf
|
||||||
|
|
||||||
- if: linux and x86_64
|
- if: linux and x86_64
|
||||||
then:
|
then:
|
||||||
- clang
|
- clang
|
||||||
|
|||||||
Reference in New Issue
Block a user