Skip to content

Commit b4dde43

Browse files
committed
build: add system libtree-sitter dependency across builds
1 parent 7a9fa5d commit b4dde43

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
if: matrix.os == 'ubuntu-22.04'
4141
run: |
4242
sudo apt-get update
43-
sudo apt-get install -y cmake ninja-build libsqlite3-dev nodejs npm git curl
43+
sudo apt-get install -y cmake ninja-build libsqlite3-dev nodejs npm git curl libtree-sitter-dev
4444
4545
- name: Install dependencies (macOS)
4646
if: matrix.os == 'macos-14'
4747
run: |
48-
brew install cmake ninja sqlite node git curl
48+
brew install cmake ninja sqlite node git curl tree-sitter
4949
5050
- name: Install dependencies (Windows)
5151
if: matrix.os == 'windows-2022'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
if: matrix.os == 'ubuntu-22.04'
3939
run: |
4040
sudo apt-get update
41-
sudo apt-get install -y cmake ninja-build libsqlite3-dev nodejs npm git curl
41+
sudo apt-get install -y cmake ninja-build libsqlite3-dev nodejs npm git curl libtree-sitter-dev
4242
4343
- name: Install dependencies (macOS)
4444
if: matrix.os == 'macos-14'
4545
run: |
46-
brew install cmake ninja sqlite node git curl
46+
brew install cmake ninja sqlite node git curl tree-sitter
4747
4848
- name: Install dependencies (Windows)
4949
if: matrix.os == 'windows-2022'

grammars/build_ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ for lang in "${LANGUAGES[@]}"; do
5454
echo " Compiling to shared library..."
5555

5656
# Build command - only include scanner.c if it exists
57-
local src_files="src/parser.c"
57+
src_files="src/parser.c"
5858
if [ -f "src/scanner.c" ]; then
5959
src_files="$src_files src/scanner.c"
6060
fi

grammars/build_tree_sitter.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ build_grammar() {
5454
fi
5555

5656
# Compile to shared library - only include scanner.c if it exists
57-
local src_files="src/parser.c"
57+
src_files="src/parser.c"
5858
if [ -f "src/scanner.c" ]; then
5959
src_files="$src_files src/scanner.c"
6060
fi

0 commit comments

Comments
 (0)