workflow instruction

neovim_0.6
ray-x 3 years ago
parent 1d2e6b5296
commit f53d06b5fd

@ -8,16 +8,16 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- os: ubuntu-20.04 - os: ubuntu-20.04
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
manager: sudo apt-get manager: sudo apt-get
packages: -y fd-find packages: -y go
- os: ubuntu-20.04 - os: ubuntu-20.04
url: https://github.com/neovim/neovim/releases/download/v0.5.1/nvim-linux64.tar.gz url: https://github.com/neovim/neovim/releases/download/v0.5.1/nvim-linux64.tar.gz
manager: sudo apt-get manager: sudo apt-get
packages: -y fd-find packages: -y go
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
@ -27,15 +27,14 @@ jobs:
- name: Restore cache for today's nightly. - name: Restore cache for today's nightly.
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: _neovim
build key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
- name: Prepare - name: Prepare
run: | run: |
${{ matrix.manager }} update ${{ matrix.manager }} update
${{ matrix.manager }} install ${{ matrix.packages }} ${{ matrix.manager }} install ${{ matrix.packages }}
sudo apt install fd-find # sudo apt install go
test -d _neovim || { test -d _neovim || {
mkdir -p _neovim mkdir -p _neovim
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim" curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"

Loading…
Cancel
Save