Skip to content

Commit d0bdf18

Browse files
committed
build: update bindings
1 parent 70ea075 commit d0bdf18

24 files changed

+259
-136
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ indent_size = 2
1111
indent_style = space
1212
indent_size = 2
1313

14+
[*.scm]
15+
indent_style = space
16+
indent_size = 2
17+
1418
[*.{c,cc,h}]
1519
indent_style = space
1620
indent_size = 4
@@ -37,3 +41,6 @@ indent_size = 8
3741

3842
[parser.c]
3943
indent_size = 2
44+
45+
[{alloc,array,parser}.h]
46+
indent_size = 2

.gitattributes

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,37 @@
11
* text=auto eol=lf
22

3+
# Generated source files
34
src/*.json linguist-generated
45
src/parser.c linguist-generated
56
src/tree_sitter/* linguist-generated
67

7-
bindings/** linguist-generated
8+
# C bindings
9+
bindings/c/* linguist-generated
10+
CMakeLists.txt linguist-generated
11+
Makefile linguist-generated
12+
13+
# Rust bindings
14+
bindings/rust/* linguist-generated
15+
Cargo.toml linguist-generated
16+
Cargo.lock linguist-generated
17+
18+
# Node.js bindings
19+
bindings/node/* linguist-generated
820
binding.gyp linguist-generated
21+
package.json linguist-generated
22+
package-lock.json linguist-generated
23+
24+
# Python bindings
25+
bindings/python/** linguist-generated
926
setup.py linguist-generated
10-
Makefile linguist-generated
27+
pyproject.toml linguist-generated
28+
29+
# Go bindings
30+
bindings/go/* linguist-generated
31+
go.mod linguist-generated
32+
go.sum linguist-generated
33+
34+
# Swift bindings
35+
bindings/swift/** linguist-generated
1136
Package.swift linguist-generated
37+
Package.resolved linguist-generated

.github/workflows/fuzz.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ jobs:
1717
uses: actions/checkout@v4
1818
- name: Run fuzzer
1919
uses: tree-sitter/fuzz-action@v4
20-
with:
21-
tree-sitter-version: v0.22.5

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ on:
44
push:
55
tags: ["*"]
66

7-
concurrency:
8-
group: ${{github.workflow}}-${{github.ref}}
9-
cancel-in-progress: true
7+
permissions:
8+
contents: write
9+
id-token: write
10+
attestations: write
1011

1112
jobs:
13+
github:
14+
uses: tree-sitter/workflows/.github/workflows/release.yml@main
15+
with:
16+
generate: true
17+
attestations: true
1218
npm:
1319
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
1420
secrets:

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ target/
55
build/
66
prebuilds/
77
node_modules/
8-
*.tgz
98

109
# Swift artifacts
1110
.build/
12-
Package.resolved
1311

1412
# Go artifacts
1513
_obj/
@@ -35,3 +33,8 @@ dist/
3533
*.wasm
3634
*.obj
3735
*.o
36+
37+
# Archives
38+
*.tar.gz
39+
*.tgz
40+
*.zip

CMakeLists.txt

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 13 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)