Skip to content

ci: build and verify the ast-grep distribution#20

Merged
edmundmiller merged 2 commits into
mainfrom
ast-grep-outline
Jun 23, 2026
Merged

ci: build and verify the ast-grep distribution#20
edmundmiller merged 2 commits into
mainfrom
ast-grep-outline

Conversation

@edmundmiller

Copy link
Copy Markdown
Member

Summary

Add a GitHub Actions workflow that builds and verifies the ast-grep distribution.

Per platform (macos-arm64, linux-x64 — the targets in sgconfig.yml):

  • build the tree-sitter parser library with tree-sitter build,
  • verify it exports tree_sitter_nextflow,
  • smoke-test the shipped sgconfig.yml + outline rules with ast-grep@0.44.0 against a sample .nf (asserts the expected symbols are extracted),
  • upload the library as a build artifact.

Triggers on changes to the grammar, parser, sgconfig.yml, rules/, outline/, lib/, or the workflow, plus workflow_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

edmundmiller and others added 2 commits June 23, 2026 12:47
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>
@edmundmiller edmundmiller merged commit 578e190 into main Jun 23, 2026
4 checks passed
@edmundmiller edmundmiller deleted the ast-grep-outline branch June 23, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant