-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: correct link to build-tree-sitter repo, add sudo * fix: checkout submodules * fixup! fix: checkout submodules * update submodules * fix: windows PATH * fix: sort git modules * fix: ignore target dir * fix: bring build-tree-sitter in-tree * fix: remove tree-sitter-hcl * fix: add new tree-sitter-hcl * fix: add new tree-sitter-hcl * fix: ocaml/markdown * fix: building * fix: building * fix: building * fix: building * fix: building * fix: building * fix: building * Create dependabot.yml * update modules * fix building * rename * update workflow * fix stupid source hut shit * use clang for ubuntu
- Loading branch information
Showing
59 changed files
with
1,167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "rust" # See documentation for possible values | ||
directory: "/build-tree-sitter" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 */7 * * | ||
workflow_dispatch: | ||
inputs: | ||
tag_name: | ||
description: 'Tag name for release' | ||
required: false | ||
default: nightly | ||
push: | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+*"] | ||
pull_request: | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows, ubuntu, macos] | ||
env: | ||
RELEASE_TAG_NAME: ${{ inputs.tag_name }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Install Ubuntu dependencies | ||
if: matrix.os == 'ubuntu' | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install curl wget clang pkg-config | ||
sudo update-alternatives --set cc /usr/bin/clang | ||
- name: Update rust | ||
run: rustup update | ||
|
||
- name: Fetch dependencies | ||
run: | | ||
cargo install --path ./build-tree-sitter --locked | ||
cargo install tree-sitter-cli --locked | ||
- name: Build grammars | ||
if: always() | ||
run: | | ||
build-tree-sitter --output ./output | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: lapce-${{ matrix.os }} | ||
path: | | ||
./output | ||
retention-days: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
**.so | ||
**.log | ||
**.dll | ||
**.dylib | ||
**.exp | ||
**.lib | ||
**.obj | ||
|
||
/target | ||
/output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
[submodule "grammars/tree-sitter-bash"] | ||
path = grammars/tree-sitter-bash | ||
url = https://github.com/tree-sitter/tree-sitter-bash.git | ||
[submodule "grammars/tree-sitter-c"] | ||
path = grammars/tree-sitter-c | ||
url = https://github.com/tree-sitter/tree-sitter-c.git | ||
[submodule "grammars/tree-sitter-clojure"] | ||
path = grammars/tree-sitter-clojure | ||
url = https://github.com/abreumatheus/tree-sitter-clojure.git | ||
[submodule "grammars/tree-sitter-cmake"] | ||
path = grammars/tree-sitter-cmake | ||
url = https://github.com/uyha/tree-sitter-cmake.git | ||
[submodule "grammars/tree-sitter-cpp"] | ||
path = grammars/tree-sitter-cpp | ||
url = https://github.com/tree-sitter/tree-sitter-cpp.git | ||
[submodule "grammars/tree-sitter-c-sharp"] | ||
path = grammars/tree-sitter-c-sharp | ||
url = https://github.com/tree-sitter/tree-sitter-c-sharp.git | ||
[submodule "grammars/tree-sitter-css"] | ||
path = grammars/tree-sitter-css | ||
url = https://github.com/syntacti/tree-sitter-css.git | ||
[submodule "grammars/tree-sitter-d"] | ||
path = grammars/tree-sitter-d | ||
url = https://github.com/ghishadow/tree-sitter-d.git | ||
[submodule "grammars/tree-sitter-dockerfile"] | ||
path = grammars/tree-sitter-dockerfile | ||
url = https://github.com/panekj/tree-sitter-dockerfile.git | ||
[submodule "grammars/tree-sitter-elixir"] | ||
path = grammars/tree-sitter-elixir | ||
url = https://github.com/elixir-lang/tree-sitter-elixir.git | ||
[submodule "grammars/tree-sitter-elm"] | ||
path = grammars/tree-sitter-elm | ||
url = https://github.com/elm-tooling/tree-sitter-elm.git | ||
[submodule "grammars/tree-sitter-erlang"] | ||
path = grammars/tree-sitter-erlang | ||
url = https://github.com/WhatsApp/tree-sitter-erlang.git | ||
[submodule "grammars/tree-sitter-glimmer"] | ||
path = grammars/tree-sitter-glimmer | ||
url = https://github.com/VixieTSQ/tree-sitter-glimmer.git | ||
[submodule "grammars/tree-sitter-glsl"] | ||
path = grammars/tree-sitter-glsl | ||
url = https://github.com/theHamsta/tree-sitter-glsl.git | ||
[submodule "grammars/tree-sitter-go"] | ||
path = grammars/tree-sitter-go | ||
url = https://github.com/tree-sitter/tree-sitter-go.git | ||
[submodule "grammars/tree-sitter-hare"] | ||
path = grammars/tree-sitter-hare | ||
url = https://git.sr.ht/~ghishadow/tree-sitter-hare | ||
[submodule "grammars/tree-sitter-haskell"] | ||
path = grammars/tree-sitter-haskell | ||
url = https://github.com/tree-sitter/tree-sitter-haskell.git | ||
[submodule "grammars/tree-sitter-haxe"] | ||
path = grammars/tree-sitter-haxe | ||
url = https://github.com/vantreeseba/tree-sitter-haxe.git | ||
[submodule "grammars/tree-sitter-hcl"] | ||
path = grammars/tree-sitter-hcl | ||
url = https://github.com/MichaHoffmann/tree-sitter-hcl.git | ||
[submodule "grammars/tree-sitter-html"] | ||
path = grammars/tree-sitter-html | ||
url = https://github.com/tree-sitter/tree-sitter-html.git | ||
[submodule "grammars/tree-sitter-java"] | ||
path = grammars/tree-sitter-java | ||
url = https://github.com/tree-sitter/tree-sitter-java.git | ||
[submodule "grammars/tree-sitter-javascript"] | ||
path = grammars/tree-sitter-javascript | ||
url = https://github.com/tree-sitter/tree-sitter-javascript.git | ||
[submodule "grammars/tree-sitter-json"] | ||
path = grammars/tree-sitter-json | ||
url = https://github.com/tree-sitter/tree-sitter-json.git | ||
[submodule "grammars/tree-sitter-julia"] | ||
path = grammars/tree-sitter-julia | ||
url = https://github.com/varlad/tree-sitter-julia.git | ||
[submodule "grammars/tree-sitter-kotlin"] | ||
path = grammars/tree-sitter-kotlin | ||
url = https://github.com/fwcd/tree-sitter-kotlin.git | ||
[submodule "grammars/tree-sitter-latex"] | ||
path = grammars/tree-sitter-latex | ||
url = https://github.com/latex-lsp/tree-sitter-latex.git | ||
[submodule "grammars/tree-sitter-lua"] | ||
path = grammars/tree-sitter-lua | ||
url = https://github.com/syntacti/tree-sitter-lua.git | ||
[submodule "grammars/tree-sitter-markdown"] | ||
path = grammars/tree-sitter-markdown | ||
url = https://github.com/MDeiml/tree-sitter-markdown.git | ||
[submodule "grammars/tree-sitter-nix"] | ||
path = grammars/tree-sitter-nix | ||
url = https://github.com/panekj/tree-sitter-nix.git | ||
[submodule "grammars/tree-sitter-ocaml"] | ||
path = grammars/tree-sitter-ocaml | ||
url = https://github.com/tree-sitter/tree-sitter-ocaml.git | ||
[submodule "grammars/tree-sitter-php"] | ||
path = grammars/tree-sitter-php | ||
url = https://github.com/tree-sitter/tree-sitter-php.git | ||
[submodule "grammars/tree-sitter-prisma"] | ||
path = grammars/tree-sitter-prisma | ||
url = https://github.com/victorhqc/tree-sitter-prisma.git | ||
[submodule "grammars/tree-sitter-protobuf"] | ||
path = grammars/tree-sitter-protobuf | ||
url = https://github.com/yusdacra/tree-sitter-protobuf.git | ||
[submodule "grammars/tree-sitter-python"] | ||
path = grammars/tree-sitter-python | ||
url = https://github.com/tree-sitter/tree-sitter-python.git | ||
[submodule "grammars/tree-sitter-ql"] | ||
path = grammars/tree-sitter-ql | ||
url = https://github.com/tree-sitter/tree-sitter-ql.git | ||
[submodule "grammars/tree-sitter-r"] | ||
path = grammars/tree-sitter-r | ||
url = https://github.com/r-lib/tree-sitter-r.git | ||
[submodule "grammars/tree-sitter-ruby"] | ||
path = grammars/tree-sitter-ruby | ||
url = https://github.com/tree-sitter/tree-sitter-ruby.git | ||
[submodule "grammars/tree-sitter-rust"] | ||
path = grammars/tree-sitter-rust | ||
url = https://github.com/tree-sitter/tree-sitter-rust.git | ||
[submodule "grammars/tree-sitter-scheme"] | ||
path = grammars/tree-sitter-scheme | ||
url = https://github.com/6cdh/tree-sitter-scheme.git | ||
[submodule "grammars/tree-sitter-scss"] | ||
path = grammars/tree-sitter-scss | ||
url = https://github.com/VixieTSQ/tree-sitter-scss.git | ||
[submodule "grammars/tree-sitter-sql"] | ||
path = grammars/tree-sitter-sql | ||
url = https://github.com/oknozor/tree-sitter-sql.git | ||
[submodule "grammars/tree-sitter-svelte"] | ||
path = grammars/tree-sitter-svelte | ||
url = https://github.com/Himujjal/tree-sitter-svelte.git | ||
[submodule "grammars/tree-sitter-swift"] | ||
path = grammars/tree-sitter-swift | ||
url = https://github.com/alex-pinkus/tree-sitter-swift.git | ||
[submodule "grammars/tree-sitter-toml"] | ||
path = grammars/tree-sitter-toml | ||
url = https://github.com/Mathspy/tree-sitter-toml.git | ||
[submodule "grammars/tree-sitter-typescript"] | ||
path = grammars/tree-sitter-typescript | ||
url = https://github.com/tree-sitter/tree-sitter-typescript.git | ||
[submodule "grammars/tree-sitter-vue"] | ||
path = grammars/tree-sitter-vue | ||
url = https://github.com/xiaoxin-sky/tree-sitter-vue.git | ||
[submodule "grammars/tree-sitter-wgsl"] | ||
path = grammars/tree-sitter-wgsl | ||
url = https://github.com/szebniok/tree-sitter-wgsl.git | ||
[submodule "grammars/tree-sitter-xml"] | ||
path = grammars/tree-sitter-xml | ||
url = https://github.com/RenjiSann/tree-sitter-xml.git | ||
[submodule "grammars/tree-sitter-yaml"] | ||
path = grammars/tree-sitter-yaml | ||
url = https://github.com/panekj/tree-sitter-yaml.git | ||
[submodule "grammars/tree-sitter-zig"] | ||
path = grammars/tree-sitter-zig | ||
url = https://github.com/maxxnino/tree-sitter-zig.git |
Oops, something went wrong.