Skip to content

Commit

Permalink
Add ccls language server
Browse files Browse the repository at this point in the history
  • Loading branch information
bkhl committed Oct 7, 2024
1 parent 6a335da commit fd1d2e1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- context: bashls
tag: bash-language-server

- context: ccls
tag: ccls

- context: clangd
tag: clangd-language-server

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ services:
build:
context: servers/bashls

ccls:
image: lspcontainers/ccls
build:
context: servers/ccls

clangd:
image: lspcontainers/clangd-language-server
build:
Expand Down
20 changes: 20 additions & 0 deletions servers/ccls/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM alpine as builder

RUN apk add --no-cache clang17-dev clang17-static llvm17-dev llvm17-static llvm17-gtest cmake make git
RUN git clone --depth=1 --recursive https://github.com/MaskRay/ccls /ccls

WORKDIR /ccls

RUN cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-17 \
-DCMAKE_PREFIX_PATH=/usr/lib/llvm17
RUN cmake --build Release
RUN cmake --build Release --target install

FROM alpine

RUN apk add --no-cache clang17

COPY --from=builder /usr/local/bin/ccls /usr/local/bin/ccls

CMD ["/usr/local/bin/ccls"]

0 comments on commit fd1d2e1

Please sign in to comment.