@@ -112,8 +112,9 @@ jobs:
112112 sleep 1
113113 done
114114
115- - name : Install tree-sitter-cli
116- run : cargo install tree-sitter-cli
115+ - uses : tree-sitter/setup-action@v2
116+ with :
117+ install-lib : false
117118
118119 - name : Setup sqlx-cli
119120 run : cargo install sqlx-cli
@@ -170,8 +171,9 @@ jobs:
170171 - name : Setup Postgres
171172 uses : ./.github/actions/setup-postgres
172173
173- - name : Install tree-sitter-cli
174- run : cargo install tree-sitter-cli
174+ - uses : tree-sitter/setup-action@v2
175+ with :
176+ install-lib : false
175177
176178 - name : Run tests
177179 run : cargo test --workspace
@@ -201,8 +203,9 @@ jobs:
201203 uses : moonrepo/setup-rust@v1
202204 with :
203205 cache-base : main
204- - name : Install tree-sitter-cli
205- run : cargo install tree-sitter-cli
206+ - uses : tree-sitter/setup-action@v2
207+ with :
208+ install-lib : false
206209 - name : Build main binary
207210 run : cargo build -p pgt_cli --release
208211 - name : Setup Bun
@@ -244,8 +247,9 @@ jobs:
244247 cache-base : main
245248 env :
246249 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
247- - name : Install tree-sitter-cli
248- run : cargo install tree-sitter-cli
250+ - uses : tree-sitter/setup-action@v2
251+ with :
252+ install-lib : false
249253 - name : Ensure RustFMT on nightly toolchain
250254 run : rustup component add rustfmt --toolchain nightly
251255 - name : echo toolchain
0 commit comments