Skip to content

Commit 7f11a22

Browse files
committed
Fix: build all grammars so Language enum initializes
1 parent 6ddd5e6 commit 7f11a22

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/build-linux-ts-native.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ jobs:
1414
sudo apt-get update
1515
sudo apt-get install -y build-essential python3 git openjdk-17-jdk-headless
1616
17-
- name: Clone java-tree-sitter (latest, with submodules for cpp only)
17+
- name: Clone java-tree-sitter with all grammar submodules
1818
run: |
19-
git clone --depth 1 https://github.com/seart-group/java-tree-sitter.git java-tree-sitter
20-
cd java-tree-sitter
21-
# Only init the submodules we actually need
22-
git submodule update --init --depth 1 tree-sitter tree-sitter-cpp
19+
git clone --depth 1 --recurse-submodules --shallow-submodules \
20+
https://github.com/seart-group/java-tree-sitter.git java-tree-sitter
2321
24-
- name: Build native library (C++ grammar only, glibc)
22+
- name: Build native library (all grammars, glibc)
2523
run: |
2624
cd java-tree-sitter
27-
python3 build.py --verbose tree-sitter-cpp
25+
python3 build.py --verbose
2826
ls -lh libjava-tree-sitter.so
2927
file libjava-tree-sitter.so
3028
ldd libjava-tree-sitter.so

0 commit comments

Comments
 (0)