Просмотр исходного кода

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.
Daniel Bevenius 10 месяцев назад
Родитель
Сommit
074c4fd39d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      .github/workflows/build.yml

+ 2 - 0
.github/workflows/build.yml

@@ -1320,6 +1320,8 @@ jobs:
     steps:
     steps:
       - name: Checkout code
       - name: Checkout code
         uses: actions/checkout@v4
         uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
 
 
       - name: Build
       - name: Build
         id: cmake_build
         id: cmake_build