Skip to content

Tree-sitter setup

Actions
Set up the tree-sitter library CLI
v2
Latest
Star (6)

Tree-sitter library & CLI setup

Options

install-cli:
  description: Install the CLI
  default: true
install-lib:
  description: Install the library
  default: true
tree-sitter-ref:
  description: A tree-sitter commit, tag, or branch
  default: latest
rust-toolchain:
  description: Rust toolchain
  default: stable

Example configuration

name: Generate

on:
  pull_request:

jobs:
  generate:
    name: Generate parser
    runs-on: ubuntu-latest
    steps:
      - uses: tree-sitter/setup-action@v2
        with:
          install-lib: false
      - run: tree-sitter generate

Tree-sitter setup is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Set up the tree-sitter library CLI
v2
Latest

Tree-sitter setup is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.