nvim-treesitter-main/.github/workflows/main.yaml
iofq d7acb39fda
Some checks failed
CI / build (push) Has been cancelled
bundle parsers with lua source
2025-10-08 21:51:24 -05:00

26 lines
802 B
YAML

---
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/flakehub-cache-action@main
- run: nix flake check
- run: nix run nixpkgs#nixfmt **/*.nix
# check generate-parsers
- run: mv generated.nix generated.nix.old
- run: nix develop --command "generate-parsers"
- run: diff generated.nix generated.nix.old
- run: nix build .#nvim-treesitter.withAllGrammars
# Ensure bundle is injected into source code
- run: grep -R "/nix/store" result/lua
# Ensure parsers & queries are linked to rtp
- run: |-
test -f result/parser/http.so
test -d result/queries/http