From: Daniel Bevenius Date: Wed, 5 Mar 2025 13:16:40 +0000 (+0100) Subject: ci : add fetch-depth to xcframework upload (#12195) X-Git-Tag: upstream/0.0.4853~24 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=074c4fd39df3af974e10fbee6cc6db5d9304655b;p=pkg%2Fggml%2Fsources%2Fllama.cpp ci : add fetch-depth to xcframework upload (#12195) This commit adds the fetch-depth: 0 option to the checkout action in the build.yml workflow file (0 meaning that it fetches the complete history). The default value is 1 when not specified which only fetches the latest commit. This is necessary to ensure that `git rev-list --count HEAD` counts the total number of commits in the history. Currently because the default is being used the name of the xcframework artifact is always llama-b1-xcframework. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65f068a9..b653b1f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1320,6 +1320,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build id: cmake_build