mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	
							
								
								
									
										14
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -84,12 +84,14 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Pack artifacts
 | 
			
		||||
        id: pack_artifacts
 | 
			
		||||
        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
 | 
			
		||||
        run: |
 | 
			
		||||
          cp LICENSE ./build/bin/
 | 
			
		||||
          cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
 | 
			
		||||
          zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.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-macos-arm64.zip
 | 
			
		||||
@@ -145,12 +147,14 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Pack artifacts
 | 
			
		||||
        id: pack_artifacts
 | 
			
		||||
        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
 | 
			
		||||
        run: |
 | 
			
		||||
          cp LICENSE ./build/bin/
 | 
			
		||||
          cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
 | 
			
		||||
          zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.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-macos-x64.zip
 | 
			
		||||
@@ -215,12 +219,14 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Pack artifacts
 | 
			
		||||
        id: pack_artifacts
 | 
			
		||||
        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
 | 
			
		||||
        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/*
 | 
			
		||||
 | 
			
		||||
      - 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
 | 
			
		||||
@@ -817,12 +823,14 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Pack artifacts
 | 
			
		||||
        id: pack_artifacts
 | 
			
		||||
        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
 | 
			
		||||
        run: |
 | 
			
		||||
          Copy-Item LICENSE .\build\bin\Release\llama.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\*
 | 
			
		||||
 | 
			
		||||
      - 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-win-${{ matrix.build }}.zip
 | 
			
		||||
@@ -965,16 +973,19 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Pack artifacts
 | 
			
		||||
        id: pack_artifacts
 | 
			
		||||
        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
 | 
			
		||||
        run: |
 | 
			
		||||
          7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip .\build\bin\Release\*
 | 
			
		||||
 | 
			
		||||
      - 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-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip
 | 
			
		||||
          name: llama-bin-win-cu${{ matrix.cuda }}-x64.zip
 | 
			
		||||
 | 
			
		||||
      - name: Copy and pack Cuda runtime
 | 
			
		||||
        if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "Cuda install location: ${{ env.CUDA_PATH }}"
 | 
			
		||||
          $dst='.\build\bin\cudart\'
 | 
			
		||||
@@ -983,6 +994,7 @@ jobs:
 | 
			
		||||
          7z a cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip $dst\*
 | 
			
		||||
 | 
			
		||||
      - 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
 | 
			
		||||
        with:
 | 
			
		||||
          path: cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
 | 
			
		||||
@@ -1029,6 +1041,7 @@ jobs:
 | 
			
		||||
 | 
			
		||||
      - name: Build the release package
 | 
			
		||||
        id: pack_artifacts
 | 
			
		||||
        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
 | 
			
		||||
        run: |
 | 
			
		||||
          echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
 | 
			
		||||
 | 
			
		||||
@@ -1053,6 +1066,7 @@ jobs:
 | 
			
		||||
          7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
 | 
			
		||||
 | 
			
		||||
      - 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
 | 
			
		||||
        with:
 | 
			
		||||
          path: llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user