Set up different step for windows when installing packer in workflow

pull/2/head
Ensar Sarajčić 2022-04-28 18:00:36 +02:00
parent dcb815e2d8
commit df82f8f362
1 changed files with 6 additions and 2 deletions

View File

@ -23,9 +23,13 @@ jobs:
with:
neovim: true
- name: Install packer
if: ${{ matrix.platform != 'windows-latest' }}
run: |
NVIM_HOME=$(printf "luado return vim.fn.stdpath(\"data\")\n%%print\n" | nvim -es)
git clone https://github.com/wbthomason/packer.nvim $NVIM_HOME/site/pack/packer/start/packer.nvim
git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
- name: Install packer on Windows
if: ${{ matrix.platform == 'windows-latest' }}
run: |
git clone https://github.com/wbthomason/packer.nvim "$env:LOCALAPPDATA\nvim-data\site\pack\packer\start\packer.nvim"
- name: Run neovim checks
run: make check_neovim
env: