File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -408,19 +408,31 @@ jobs:
408408          sudo apt-get update -y 
409409          sudo apt-get install -y build-essential mesa-vulkan-drivers libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libcurl4-openssl-dev 
410410
411+ name : Get latest Vulkan SDK version 
412+         id : vulkan_sdk_version 
413+         run : | 
414+           echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV" 
415+ 
416+ name : Cache Vulkan SDK 
417+         id : cache_vulkan_sdk 
418+         uses : actions/cache@v4 
419+         with :
420+           path : /tmp/vulkan_sdk/${{ env.VULKAN_SDK_VERSION }} 
421+           key : vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }} 
422+ 
411423      - name : Install Vulkan SDK 
412-         id : vulkan_sdk 
424+         if : steps.cache_vulkan_sdk.outputs.cache-hit != 'true' 
425+         id : vulkan_sdk_install 
413426        run : | 
414-           mkdir vulkan_sdk 
415-           cd vulkan_sdk 
416-           wget https://sdk.lunarg.com/sdk/download/latest /linux/vulkan_sdk.tar.xz 
427+           mkdir -p /tmp/ vulkan_sdk 
428+           cd /tmp/ vulkan_sdk 
429+           wget https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VERSION} /linux/vulkan_sdk.tar.xz 
417430          tar -xf vulkan_sdk.tar.xz 
418-           echo "VULKAN_SETUP=$(readlink -f ./*/setup-env.sh)" >> "$GITHUB_ENV" 
419431
420432name : Build 
421433        id : cmake_build 
422434        run : | 
423-           source $VULKAN_SETUP  
435+           source /tmp/vulkan_sdk/${VULKAN_SDK_VERSION}/setup-env.sh  
424436          cmake -B build \ 
425437            -DGGML_VULKAN=ON 
426438          cmake --build build --config Release -j $(nproc) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments