Skip to content

Commit

Permalink
Merge pull request #12 from vim-denops/support-denops-v7
Browse files Browse the repository at this point in the history
Support denops v7
  • Loading branch information
lambdalisue authored Jul 27, 2024
2 parents c2aaceb + 9600999 commit bb6fad6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
denops_version:
description: Denops version
required: false
default: "v5.0.0" # or "main"
default: "main"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -26,7 +26,7 @@ jobs:
id: vars
run: |
if [[ -z "${{ github.event.inputs.denops_version }}" ]]; then
echo '::set-output name=DENOPS_VERSION::v5.0.0'
echo '::set-output name=DENOPS_VERSION::main'
else
echo '::set-output name=DENOPS_VERSION::${{ github.event.inputs.denops_version }}'
fi
Expand Down
13 changes: 5 additions & 8 deletions Dockerfile.neovim
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
unzip \
git

ARG DENO_VERSION=v1.32.0
WORKDIR /working
RUN curl -sSL -O https://github.com/denoland/deno/releases/download/${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip \
&& unzip deno-x86_64-unknown-linux-gnu.zip
RUN mkdir -p /opt/deno/bin \
&& mv deno /opt/deno/bin/deno
ARG DENO_VERSION=v1.45.0
RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/opt/deno sh -s ${DENO_VERSION}


#------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -92,7 +88,8 @@ COPY --from=deno /opt/deno /opt/deno
COPY --from=denops /denops.vim /root/.local/share/nvim/site/pack/denops/start/denops.vim

# Install denops.vim
WORKDIR /root/.local/share/nvim/site/pack/denops/start
RUN deno cache --unstable --no-check=remote */denops/**/*.ts
WORKDIR /root/.local/share/nvim/site/pack/denops/start/denops.vim
RUN deno cache denops/**/*.ts
WORKDIR /root/.vim/pack/denops/start

ENTRYPOINT ["/opt/neovim/bin/nvim"]
11 changes: 4 additions & 7 deletions Dockerfile.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
unzip \
git

ARG DENO_VERSION=v1.32.0
WORKDIR /working
RUN curl -sSL -O https://github.com/denoland/deno/releases/download/${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip \
&& unzip deno-x86_64-unknown-linux-gnu.zip
RUN mkdir -p /opt/deno/bin \
&& mv deno /opt/deno/bin/deno
ARG DENO_VERSION=v1.45.0
RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/opt/deno sh -s ${DENO_VERSION}


#------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -89,7 +85,8 @@ COPY --from=deno /opt/deno /opt/deno
COPY --from=denops /denops.vim /root/.vim/pack/denops/start/denops.vim

# Install denops.vim
WORKDIR /root/.vim/pack/denops/start/denops.vim
RUN deno cache denops/**/*.ts
WORKDIR /root/.vim/pack/denops/start
RUN deno cache --unstable --no-check=remote */denops/**/*.ts

ENTRYPOINT ["/opt/vim/bin/vim"]

0 comments on commit bb6fad6

Please sign in to comment.