@@ -113,9 +113,15 @@ jobs:
113113 sleep 1
114114 done
115115
116- - uses : tree-sitter/setup-action@v2
116+ - uses : actions/cache@v5
117117 with :
118- install-lib : false
118+ path : |
119+ ~/.cargo/bin/tree-sitter
120+ ~/.cargo/bin/sqlx
121+ key : ${{ runner.os }}-tree-sitter-${{ hashFiles('rust-toolchain.toml') }}
122+
123+ - name : Setup tree-sitter
124+ run : cargo install tree-sitter-cli
119125
120126 - name : Setup sqlx-cli
121127 run : cargo install sqlx-cli
@@ -160,6 +166,7 @@ jobs:
160166 uses : actions/checkout@v4
161167 with :
162168 submodules : true
169+
163170 - name : Free Disk Space
164171 uses : ./.github/actions/free-disk-space
165172 - name : Install toolchain
@@ -172,9 +179,14 @@ jobs:
172179 - name : Setup Postgres
173180 uses : ./.github/actions/setup-postgres
174181
175- - uses : tree-sitter/setup-action@v2
182+ - uses : actions/cache@v5
176183 with :
177- install-lib : false
184+ path : |
185+ ~/.cargo/bin/tree-sitter
186+ key : ${{ runner.os }}-tree-sitter-${{ hashFiles('rust-toolchain.toml') }}
187+
188+ - name : Setup Postgres
189+ run : cargo install tree-sitter-cli
178190
179191 - name : Run tests
180192 run : cargo test --workspace
@@ -204,9 +216,13 @@ jobs:
204216 uses : moonrepo/setup-rust@v1
205217 with :
206218 cache-base : main
207- - uses : tree-sitter/setup-action@v2
219+ - uses : actions/cache@v5
208220 with :
209- install-lib : false
221+ path : |
222+ ~/.cargo/bin/tree-sitter
223+ key : ${{ runner.os }}-tree-sitter-${{ hashFiles('rust-toolchain.toml') }}
224+ - name : setup tree-sitter
225+ run : cargo install tree-sitter-cli
210226 - name : Build main binary
211227 run : cargo build -p pgls_cli --release
212228 - name : Setup Bun
@@ -259,9 +275,13 @@ jobs:
259275 cache-base : main
260276 env :
261277 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
262- - uses : tree-sitter/setup-action@v2
278+ - uses : actions/cache@v5
263279 with :
264- install-lib : false
280+ path : |
281+ ~/.cargo/bin/tree-sitter
282+ key : ${{ runner.os }}-tree-sitter-${{ hashFiles('rust-toolchain.toml') }}
283+ - name : setup tree-sitter
284+ run : cargo install tree-sitter-cli
265285 - name : Ensure RustFMT on nightly toolchain
266286 run : rustup component add rustfmt --toolchain nightly
267287 - name : echo toolchain
0 commit comments