From c5bff44fe5c435841d0c137e8386793a90532ea3 Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Fri, 17 Nov 2023 09:27:35 +0700 Subject: [PATCH] ci(github-actions): use normal install neovim fix #8 --- .github/workflows/ci.yml | 16 ++++++++++------ .github/workflows/neovim.yml | 31 ------------------------------- 2 files changed, 10 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/neovim.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2120ed1a..9b1f4f6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,6 @@ on: jobs: tests: name: ๐Ÿฅผ Tests - if: always() strategy: matrix: # os: [ubuntu-latest, windows-latest, macos-latest] @@ -16,11 +15,16 @@ jobs: steps: - name: ๐Ÿ”” Checkout uses: actions/checkout@v4 - - name: ๐Ÿ‘พ Install Neovim - uses: ./.github/workflows/neovim.yml - with: - os: ${{ matrix.os }} - version: ${{ matrix.neovim-version }} + - name: ๐Ÿ“ฆ Install NeoVim + shell: bash + continue-on-error: true + run: | + mkdir -p /tmp/nvim + wget -q https://github.com/neovim/neovim/releases/download/${{ matrix.neovim-version }}/nvim.appimage -O /tmp/nvim/nvim.appimage + cd /tmp/nvim + chmod a+x ./nvim.appimage + ./nvim.appimage --appimage-extract + echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH - name: ๐Ÿงช Test run: | nvim --version diff --git a/.github/workflows/neovim.yml b/.github/workflows/neovim.yml deleted file mode 100644 index 35edbf95..00000000 --- a/.github/workflows/neovim.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: ๐Ÿ‘พ Setup NeoVim -on: - workflow_call: - inputs: - os: - description: 'The operating system to run the setup on' - required: true - type: string - default: 'ubuntu-latest' - version: - description: 'The version of NeoVim to install' - required: true - type: string - default: 'stable' -jobs: - neovim: - name: ๐Ÿ‘ฝ Settingup NeoVim on Linux - runs-on: ${{ github.event.inputs.os }} - if: not startsWith(${{ github.event.inputs.os }}, 'windows') - steps: - - name: ๐Ÿ“ฆ Install NeoVim - shell: bash - continue-on-error: true - run: | - mkdir -p /tmp/nvim - wget -q https://github.com/neovim/neovim/releases/download/${{ github.event.inputs.version }}/nvim.appimage -O /tmp/nvim/nvim.appimage - cd /tmp/nvim - chmod a+x ./nvim.appimage - ./nvim.appimage --appimage-extract - chmod a+x ./squashfs-root/usr/bin/nvim - echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH