From b4f0182f98acc9083f0919f0808b56c40f03d1b2 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Fri, 15 Oct 2021 21:14:56 -0700 Subject: ci: use rhysd action instead for installing neovim (#1312) --- .github/workflows/docgen.yml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to '.github') diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml index 2d1f8f54..8ff59124 100644 --- a/.github/workflows/docgen.yml +++ b/.github/workflows/docgen.yml @@ -12,16 +12,12 @@ jobs: contents: write steps: - uses: actions/checkout@v2 - - run: date +%F > todays-date - - name: Restore cache for today's nightly. - uses: actions/cache@v2 + - uses: rhysd/action-setup-vim@v1 with: - path: _neovim - key: ${{ runner.os }}-nightly-${{ hashFiles('todays-date') }} - - name: Setup from neovim nightly and run docgen + neovim: true + version: nightly + - name: Run docgen run: | - curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh - source github-actions-setup.sh nightly-x64 scripts/docgen.sh - name: Commit changes env: @@ -41,21 +37,12 @@ jobs: contents: write steps: - uses: actions/checkout@v2 - - run: date +%F > todays-date - - name: Restore cache for today's nightly. - uses: actions/cache@v2 + - uses: rhysd/action-setup-vim@v1 with: - path: build - key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }} - - - name: Setup neovim nightly and install plugins + neovim: true + version: nightly + - name: Install plugins run: | - test -d build || { - mkdir -p build - wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage - chmod +x nvim.appimage - mv nvim.appimage ./build/nvim - } mkdir -p ~/.local/share/nvim/site/pack/vendor/start git clone --depth 1 https://github.com/mjlbach/babelfish.nvim ~/.local/share/nvim/site/pack/vendor/start/babelfish.nvim git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter -- cgit v1.2.3-70-g09d2