Merge pull request #11154 from blueyed/bump-tree-sitter

ci: upgrade tree-sitter from 0.15.2 to 0.15.9
This commit is contained in:
Daniel Hahler 2019-10-07 13:34:23 +02:00 committed by GitHub
commit dfed0e60d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -104,12 +104,12 @@ $client = new-object System.Net.WebClient
cd c:\treesitter
if ($bits -eq 32) {
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.5/tree-sitter-windows-x86.gz","c:\treesitter\tree-sitter-cli.gz")
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x86.gz", "c:\treesitter\tree-sitter-cli.gz")
}
elseif ($bits -eq 64) {
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.5/tree-sitter-windows-x64.gz","c:\treesitter\tree-sitter-cli.gz")
$client.DownloadFile("https://github.com/tree-sitter/tree-sitter/releases/download/0.15.9/tree-sitter-windows-x64.gz", "c:\treesitter\tree-sitter-cli.gz")
}
python -c "import gzip, shutil; f1,f2 = gzip.open('tree-sitter-cli.gz', 'rb'), open('tree-sitter.exe', 'wb'); shutil.copyfileobj(f1, f2); f2.close()"
python -c "import gzip, shutil; f1,f2 = gzip.open('tree-sitter-cli.gz', 'rb'), open('tree-sitter.exe', 'wb'); shutil.copyfileobj(f1, f2); f2.close()"
$client.DownloadFile("https://codeload.github.com/tree-sitter/tree-sitter-c/zip/v0.15.2","c:\treesitter\tree_sitter_c.zip")
Expand-Archive c:\treesitter\tree_sitter_c.zip -DestinationPath c:\treesitter\

View File

@ -34,7 +34,7 @@ curl "https://codeload.github.com/tree-sitter/tree-sitter-c/tar.gz/v0.15.2" -o t
tar xf tree_sitter_c.tar.gz
cd tree-sitter-c-0.15.2
export TREE_SITTER_DIR=$HOME/tree-sitter-build/
mkdir -p $TREE_SITTER_DIR/bin
mkdir -p "$TREE_SITTER_DIR/bin"
if [[ "$BUILD_32BIT" != "ON" ]]; then
# builds c parser in $HOME/tree-sitter-build/bin/c.(so|dylib)
@ -42,5 +42,5 @@ if [[ "$BUILD_32BIT" != "ON" ]]; then
else
# no tree-sitter binary for 32bit linux, so fake it (no tree-sitter unit tests)
cd src/
gcc -m32 -o $TREE_SITTER_DIR/bin/c.so -shared parser.c -I.
gcc -m32 -o "$TREE_SITTER_DIR/bin/c.so" -shared parser.c -I.
fi