Skip to content

Commit f171618

Browse files
danbevmglambda
authored andcommitted
ci : add fetch-depth to xcframework upload (ggml-org#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.
1 parent 2061ca7 commit f171618

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,8 @@ jobs:
13201320
steps:
13211321
- name: Checkout code
13221322
uses: actions/checkout@v4
1323+
with:
1324+
fetch-depth: 0
13231325

13241326
- name: Build
13251327
id: cmake_build

0 commit comments

Comments
 (0)