ci: build and verify the ast-grep distribution#20
Merged
Conversation
Add a workflow that builds the tree-sitter parser shared libraries for macos-arm64 and linux-x64 (the targets in sgconfig.yml), checks each exports tree_sitter_nextflow, smoke-tests the sgconfig + outline rules with ast-grep 0.44.0, and uploads the libraries as artifacts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
`npm ci --ignore-scripts` also skipped tree-sitter-cli's postinstall, so the tree-sitter binary was missing (ENOENT on generate). Install the CLI globally — building the parser library needs only the CLI, not the project's node bindings. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a GitHub Actions workflow that builds and verifies the ast-grep distribution.
Per platform (
macos-arm64,linux-x64— the targets insgconfig.yml):tree-sitter build,tree_sitter_nextflow,sgconfig.yml+ outline rules withast-grep@0.44.0against a sample.nf(asserts the expected symbols are extracted),Triggers on changes to the grammar, parser,
sgconfig.yml,rules/,outline/,lib/, or the workflow, plusworkflow_dispatch.Supersedes #19 (auto-closed when its stacked base branch was deleted on merge of #18). Diff is the workflow only; the outline rules it smoke-tests landed in #18.
Testing
CI green on both platforms in the prior run (aarch64-apple-darwin, x86_64-unknown-linux-gnu). Build + symbol check + outline smoke test also validated locally with ast-grep 0.44.0.
🤖 Generated with Claude Code