]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Use the steps from rust analyze document for installation
authorYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 9 Feb 2024 17:01:04 +0000 (09:01 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Fri, 9 Feb 2024 17:01:04 +0000 (09:01 -0800)
.github/workflows/unitests.yml

index d95464321eabc465bb63053e744216ea8f9acda5..245157ee34fdb273637cb80ddfa63bbd4fe22e46 100644 (file)
@@ -25,7 +25,9 @@ jobs:
           sudo apt install -y golang
           sudo apt install -y gopls
           # install the rust language server
-          sudo rustup component add rust-analyzer
+          mkdir -p ~/.local/bin
+          curl -L https://github.com/rust-lang/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz | gunzip -c - > ~/.local/bin/rust-analyzer
+          chmod +x ~/.local/bin/rust-analyzer
       - name: Setup Vim
         uses: rhysd/action-setup-vim@v1
         id: vim
@@ -36,7 +38,7 @@ jobs:
       - name: Run Tests
         run: |
           uname -a
-          rust-analyzer --version
+          ~/.local/bin/rust-analyzer --version
           export VIMPRG=${{ steps.vim.outputs.executable }}
           $VIMPRG --version
           cd test