Skip to content

Commit c666ba2

Browse files
authored
build CI: Name artifacts (ggml-org#6482)
Name the artifacts in the build CI, so that they get uploaded with separate names, instead of all put into the same `artifact` ZIP. It might be possible to further simplify the packing step (in future PRs).
1 parent 2e66913 commit c666ba2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/build.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ jobs:
7878
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
7979
uses: actions/upload-artifact@v4
8080
with:
81-
path: |
82-
llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip
81+
path: llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip
82+
name: llama-bin-macos-arm64.zip
8383

8484
macOS-latest-cmake-x64:
8585
runs-on: macos-latest
@@ -134,8 +134,8 @@ jobs:
134134
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
135135
uses: actions/upload-artifact@v4
136136
with:
137-
path: |
138-
llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip
137+
path: llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip
138+
name: llama-bin-macos-x64.zip
139139

140140
ubuntu-focal-make:
141141
runs-on: ubuntu-20.04
@@ -725,8 +725,8 @@ jobs:
725725
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
726726
uses: actions/upload-artifact@v4
727727
with:
728-
path: |
729-
llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-x64.zip
728+
path: llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-x64.zip
729+
name: llama-bin-win-${{ matrix.build }}-x64.zip
730730

731731
windows-latest-cmake-cuda:
732732
runs-on: windows-latest
@@ -781,8 +781,8 @@ jobs:
781781
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
782782
uses: actions/upload-artifact@v4
783783
with:
784-
path: |
785-
llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip
784+
path: llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip
785+
name: llama-bin-win-cu${{ matrix.cuda }}-x64.zip
786786

787787
- name: Copy and pack Cuda runtime
788788
run: |
@@ -795,8 +795,8 @@ jobs:
795795
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
796796
uses: actions/upload-artifact@v4
797797
with:
798-
path: |
799-
cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
798+
path: cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
799+
name: cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
800800

801801
windows-latest-cmake-sycl:
802802
runs-on: windows-latest
@@ -846,8 +846,8 @@ jobs:
846846
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
847847
uses: actions/upload-artifact@v4
848848
with:
849-
path: |
850-
llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
849+
path: llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
850+
name: llama-bin-win-sycl-x64.zip
851851

852852
ios-xcode-build:
853853
runs-on: macos-latest

0 commit comments

Comments
 (0)