Skip to content

Commit

Permalink
github/workflows: fix install nvim binary
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Jan 11, 2021
1 parent 7556bc0 commit ba06d25
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,21 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Install nvim binary
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly
- name: Install nvim binary for Linux
if: runner.os == 'Linux'
run: |
curl -SLO https://github.com/go-nvim/neovim/releases/download/nightly/nvim-linux64.tar.gz
tar xzf nvim-linux64.tar.gz
mv nvim-linux64 /home/runner/nvim
echo "/home/runner/nvim/bin" >> $GITHUB_PATH
- name: Install nvim binary for macOS
if: runner.os == 'MacOS'
run: |
curl -SLO https://github.com/go-nvim/neovim/releases/download/nightly/nvim-macos.tar.gz
tar xzf nvim-macos.tar.gz
mv nvim-osx64 /Users/runner/nvim
echo "/Users/runner/nvim/bin" >> $GITHUB_PATH
- name: Test and vet
run: |
Expand Down

0 comments on commit ba06d25

Please sign in to comment.