mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	
							
								
								
									
										14
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -85,12 +85,14 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Pack artifacts |       - name: Pack artifacts | ||||||
|         id: pack_artifacts |         id: pack_artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         run: | |         run: | | ||||||
|           cp LICENSE ./build/bin/ |           cp LICENSE ./build/bin/ | ||||||
|           cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp |           cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp | ||||||
|           zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip ./build/bin/* |           zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip ./build/bin/* | ||||||
|  |  | ||||||
|       - name: Upload artifacts |       - name: Upload artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip |           path: llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip | ||||||
| @@ -147,12 +149,14 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Pack artifacts |       - name: Pack artifacts | ||||||
|         id: pack_artifacts |         id: pack_artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         run: | |         run: | | ||||||
|           cp LICENSE ./build/bin/ |           cp LICENSE ./build/bin/ | ||||||
|           cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp |           cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp | ||||||
|           zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip ./build/bin/* |           zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip ./build/bin/* | ||||||
|  |  | ||||||
|       - name: Upload artifacts |       - name: Upload artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip |           path: llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip | ||||||
| @@ -217,12 +221,14 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Pack artifacts |       - name: Pack artifacts | ||||||
|         id: pack_artifacts |         id: pack_artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         run: | |         run: | | ||||||
|           cp LICENSE ./build/bin/ |           cp LICENSE ./build/bin/ | ||||||
|           cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp |           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-x64.zip ./build/bin/* | ||||||
|  |  | ||||||
|       - name: Upload artifacts |       - name: Upload artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip |           path: llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip | ||||||
| @@ -784,12 +790,14 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Pack artifacts |       - name: Pack artifacts | ||||||
|         id: pack_artifacts |         id: pack_artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         run: | |         run: | | ||||||
|           Copy-Item LICENSE .\build\bin\Release\llama.cpp.txt |           Copy-Item LICENSE .\build\bin\Release\llama.cpp.txt | ||||||
|           Copy-Item .\examples\run\linenoise.cpp\LICENSE .\build\bin\Release\linenoise.cpp.txt |           Copy-Item .\examples\run\linenoise.cpp\LICENSE .\build\bin\Release\linenoise.cpp.txt | ||||||
|           7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\* |           7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\* | ||||||
|  |  | ||||||
|       - name: Upload artifacts |       - name: Upload artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip |           path: llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip | ||||||
| @@ -932,16 +940,19 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Pack artifacts |       - name: Pack artifacts | ||||||
|         id: pack_artifacts |         id: pack_artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         run: | |         run: | | ||||||
|           7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip .\build\bin\Release\* |           7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip .\build\bin\Release\* | ||||||
|  |  | ||||||
|       - name: Upload artifacts |       - name: Upload artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip |           path: llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip | ||||||
|           name: llama-bin-win-cu${{ matrix.cuda }}-x64.zip |           name: llama-bin-win-cu${{ matrix.cuda }}-x64.zip | ||||||
|  |  | ||||||
|       - name: Copy and pack Cuda runtime |       - name: Copy and pack Cuda runtime | ||||||
|  |         if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||||||
|         run: | |         run: | | ||||||
|           echo "Cuda install location: ${{ env.CUDA_PATH }}" |           echo "Cuda install location: ${{ env.CUDA_PATH }}" | ||||||
|           $dst='.\build\bin\cudart\' |           $dst='.\build\bin\cudart\' | ||||||
| @@ -950,6 +961,7 @@ jobs: | |||||||
|           7z a cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip $dst\* |           7z a cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip $dst\* | ||||||
|  |  | ||||||
|       - name: Upload Cuda runtime |       - name: Upload Cuda runtime | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip |           path: cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip | ||||||
| @@ -996,6 +1008,7 @@ jobs: | |||||||
|  |  | ||||||
|       - name: Build the release package |       - name: Build the release package | ||||||
|         id: pack_artifacts |         id: pack_artifacts | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         run: | |         run: | | ||||||
|           echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin" |           echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin" | ||||||
|  |  | ||||||
| @@ -1020,6 +1033,7 @@ jobs: | |||||||
|           7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/* |           7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/* | ||||||
|  |  | ||||||
|       - name: Upload the release package |       - name: Upload the release package | ||||||
|  |         if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} | ||||||
|         uses: actions/upload-artifact@v4 |         uses: actions/upload-artifact@v4 | ||||||
|         with: |         with: | ||||||
|           path: llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip |           path: llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov