Skip to content

Commit

Permalink
Add v0.9.5 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Jul 22, 2024
1 parent 4d93d9e commit 82a4f5f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Test

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -13,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
channel: [v0.10.0, nightly]
channel: [v0.9.5, v0.10.0, nightly]
steps:
- uses: actions/checkout@v2

Expand Down
21 changes: 16 additions & 5 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,28 @@ release:

[macos]
prepare-nvim channel:
#!/usr/bin/env sh
#!/usr/bin/env bash
set -eo pipefail
NVIM_DIR=".build/nvim/{{ channel }}"

test -d $NVIM_DIR || {
mkdir -p $NVIM_DIR

curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-macos-$(arch).tar.gz > ./.build/nvim-macos.tar.gz
# Older versions of nvim don't have arch specific releases - so we do a simple retry without the arch component.
curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-macos-$(arch).tar.gz --fail > ./.build/nvim-macos.tar.gz || \
curl -L https://github.com/neovim/neovim/releases/download/{{ channel }}/nvim-macos.tar.gz --fail > ./.build/nvim-macos.tar.gz

xattr -c ./.build/nvim-macos.tar.gz
tar xzf ./.build/nvim-macos.tar.gz -C $NVIM_DIR --strip-components=1
rm ./.build/nvim-macos.tar.gz
}

[linux]
prepare-nvim channel:
#!/usr/bin/env sh
#!/usr/bin/env bash
set -eo pipefail
NVIM_DIR=".build/nvim/{{ channel }}"

test -d $NVIM_DIR || {
Expand All @@ -32,7 +39,9 @@ prepare-nvim channel:
}

prepare-dependencies:
#!/usr/bin/env sh
#!/usr/bin/env bash
set -eo pipefail
test -d .build/dependencies || {
mkdir -p ./.build/dependencies
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ./.build/dependencies/plenary.nvim
Expand All @@ -42,7 +51,9 @@ prepare-dependencies:
prepare channel: (prepare-nvim channel) prepare-dependencies

test channel="stable" file="": (prepare channel)
#!/usr/bin/env sh
#!/usr/bin/env bash
set -eo pipefail
NVIM_DIR=".build/nvim/{{ channel }}"

./$NVIM_DIR/bin/nvim --version
Expand Down

0 comments on commit 82a4f5f

Please sign in to comment.