]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : fix arm upload artifacts (#12024)
authorGeorgi Gerganov <redacted>
Sat, 22 Feb 2025 13:03:00 +0000 (15:03 +0200)
committerGitHub <redacted>
Sat, 22 Feb 2025 13:03:00 +0000 (15:03 +0200)
* ci : fix arm upload artifacts

* cont : fix archive name to use matrix

.github/workflows/build.yml

index 859d538c77d1e0df3f1fc6467326ab86916c3556..b96e1f50acc9e7289faa1b717e640880c4c18af9 100644 (file)
@@ -175,7 +175,12 @@ jobs:
   ubuntu-cpu-cmake:
     strategy:
       matrix:
-        os: [ubuntu-22.04, ubuntu-22.04-arm]
+        include:
+          - build: 'x64'
+            os: ubuntu-22.04
+          - build: 'arm64'
+            os: ubuntu-22.04-arm
+
     runs-on: ${{ matrix.os }}
 
     steps:
@@ -242,14 +247,14 @@ jobs:
         run: |
           cp LICENSE ./build/bin/
           cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
-          zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip ./build/bin/*
+          zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-${{ matrix.build }}.zip ./build/bin/*
 
       - name: Upload artifacts
         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
         uses: actions/upload-artifact@v4
         with:
-          path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip
-          name: llama-bin-ubuntu-x64.zip
+          path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-${{ matrix.build }}.zip
+          name: llama-bin-ubuntu-${{ matrix.build }}.zip
 
   ubuntu-latest-cmake-sanitizer:
     runs-on: ubuntu-latest