Skip to content

Commit f7c7e72

Browse files
committed
fix(ci): build tree-sitter 0.27+ from source for Linux
Ubuntu 22.04 only provides tree-sitter 0.20.x, but tree-sitter-cl's ts-wrapper library requires libtree-sitter.so.0.27. Build tree-sitter 0.27.2 from source to satisfy this dependency.
1 parent 0063689 commit f7c7e72

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docker/Dockerfile-AppImage

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
FROM ubuntu:22.04 AS build
22

3-
RUN apt-get update && apt-get install -y curl bzip2 git libzstd-dev file libncurses-dev build-essential libtree-sitter-dev
3+
RUN apt-get update && apt-get install -y curl bzip2 git libzstd-dev file libncurses-dev build-essential
4+
5+
# Build tree-sitter 0.27+ from source (Ubuntu 22.04 only has 0.20.x)
6+
WORKDIR /tmp
7+
RUN curl -L -o tree-sitter.tar.gz https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v0.27.2.tar.gz && \
8+
tar xzf tree-sitter.tar.gz && \
9+
cd tree-sitter-0.27.2 && \
10+
make -j$(nproc) && \
11+
make install && \
12+
ldconfig
413

514
# development
615
#RUN apt-get install -y libgtk-4-dev libwebkitgtk-6.0-dev

0 commit comments

Comments
 (0)