File tree Expand file tree Collapse file tree 2 files changed +7
-26
lines changed Expand file tree Collapse file tree 2 files changed +7
-26
lines changed Original file line number Diff line number Diff line change 2727      image : " swift:6.0-noble" 
2828    steps :
2929      - name : WasmBuild 
30-       #  TODO: Update this to use swift-nio once https://github.com/apple/swift-nio/pull/3159/ is merged
30+          #  TODO: Update this to use swift-nio once https://github.com/apple/swift-nio/pull/3159/ is merged
3131        run : | 
32-           apt-get update -y -q && apt-get install -y -q curl && $workspace/scripts/install_wasm_sdk.sh 
33-           swift build --swift-sdk wasm32-unknown-wasi 
32+           apt-get update -y -q 
33+           apt-get install -y -q curl 
34+           version="$(swift --version | head -n1)" 
35+           tag="$(curl -sL "https://raw.githubusercontent.com/swiftwasm/swift-sdk-index/refs/heads/main/v1/tag-by-version.json" | jq -e -r --arg v "$version" '.[$v] | .[-1]')" 
36+           curl -sL "https://raw.githubusercontent.com/swiftwasm/swift-sdk-index/refs/heads/main/v1/builds/$tag.json" | jq -r '.["swift-sdks"]["wasm32-unknown-wasi"] | "swift sdk install \"\(.url)\" --checksum \"\(.checksum)\""' | sh -x 
37+           swift build --swift-sdk wasm32-unknown-wasi 
  Load Diff This file was deleted. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments