File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,19 @@ jobs:
5858      run : | 
5959        set -eu -o pipefail 
6060
61-         if [[ "$RUNNER_OS" == "Linux" ]]; then 
62-           BASE="nvim-linux64" 
63-         elif [[ "$RUNNER_OS" == "macOS" ]]; then 
64-           BASE="nvim-macos-x86_64" 
65-         else 
66-           echo "$RUNNER_OS not supported"; exit 1; 
61+         NVIM_OS="$(echo "$RUNNER_OS" | tr '[:upper:]' '[:lower:]')" 
62+         if ! [ "$NVIM_OS" = "linux" ] && ! [ "$NVIM_OS" = "macos" ]; then 
63+           echo "RUNNER_OS=${RUNNER_OS} not supported"; exit 1; 
6764        fi 
6865
69-         curl -LO "https://github.com/neovim/neovim/releases/download/${{ matrix.config.neovim-version || 'nightly' }}/${BASE}.tar.gz" 
70-         tar xzf "${BASE}.tar.gz" 
66+         NVIM_NAME="nvim-${NVIM_OS}-x86_64" 
67+         curl -LO "https://github.com/neovim/neovim/releases/download/${{ matrix.config.neovim-version || 'nightly' }}/${NVIM_NAME}.tar.gz" 
68+         tar xzf "${NVIM_NAME}.tar.gz" 
7169        echo "RUNNER_OS = $RUNNER_OS" 
72-         $BASE /bin/nvim --version 
70+         "$NVIM_NAME /bin/nvim"  --version 
7371
7472        # update $PATH for later steps 
75-         echo "$(pwd)/$BASE /bin" >> $GITHUB_PATH 
73+         echo "$(pwd)/$NVIM_NAME /bin" >> " $GITHUB_PATH"  
7674
7775name : install neovim (Windows) 
7876      if : runner.os == 'Windows' 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments