* separate linux window llmcpp build * harness run on linux only * fix platform * skip error * change to linux only build * add judgement of platform * add download args * remove ||true
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Download LLM binary files
 | 
						|
description: Download built binary files from github artifact
 | 
						|
inputs:
 | 
						|
  platform:
 | 
						|
    description: 'Platforms to built on'
 | 
						|
    default: 'Windows,Linux'
 | 
						|
    required: false
 | 
						|
    type: string
 | 
						|
runs:
 | 
						|
  using: "composite"
 | 
						|
  steps:
 | 
						|
    - name: Download all build files
 | 
						|
      uses: actions/download-artifact@v3
 | 
						|
    - name: Move build resources
 | 
						|
      shell: bash
 | 
						|
      run: |
 | 
						|
        rm -rf python/llm/llm-binary || true
 | 
						|
        mkdir -p python/llm/llm-binary
 | 
						|
        if ${{contains(inputs.platform, 'Linux')}}; then
 | 
						|
          mv linux-avx2/* python/llm/llm-binary/ 
 | 
						|
          mv linux-avx512/* python/llm/llm-binary/
 | 
						|
          mv linux-avxvnni/* python/llm/llm-binary/
 | 
						|
          mv linux-avx/* python/llm/llm-binary/
 | 
						|
          mv linux-amx/* python/llm/llm-binary/
 | 
						|
        fi
 | 
						|
        if ${{contains(inputs.platform, 'Windows')}}; then
 | 
						|
          mv windows-avx2/* python/llm/llm-binary/
 | 
						|
          mv windows-avx-vnni/* python/llm/llm-binary/
 | 
						|
          mv windows-avx/* python/llm/llm-binary/
 | 
						|
        fi
 | 
						|
        rm -rf linux-avx2 || true
 | 
						|
        rm -rf linux-avx512 || true
 | 
						|
        rm -rf linux-avxvnni || true
 | 
						|
        rm -rf linux-avx || true
 | 
						|
        rm -rf linux-amx || true
 | 
						|
        rm -rf windows-avx2 || true
 | 
						|
        rm -rf windows-avx-vnni || true
 | 
						|
        rm -rf windows-avx || true        
 |