Files
gp4/.github/workflows/treesitter.yaml
T
Will Hawkins 45a8baa323 Add Reusable Workflows (12)
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-01-19 15:03:34 -05:00

27 lines
712 B
YAML

on: [workflow_call]
name: Install Treesitter
jobs:
install-treesitter:
name: Install Treesitter
runs-on: ubuntu-latest
steps:
- run: env
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
- uses: tree-sitter/setup-action@v2
with:
install-cli: true
- run: ls -latr /opt/hostedtoolcache/tree-sitter/cli/bin/
generate-grammar:
name: Install Treesitter
runs-on: ubuntu-latest
needs: install-treesitter
steps:
- uses: actions/checkout@v2
- run: ls -latr /opt/hostedtoolcache/tree-sitter/cli/bin/
- run: /opt/hostedtoolcache/tree-sitter/cli/bin/tree-sitter generate
working-directory: ./tree-sitter-p4