Skip to content

ast-grep-cli: add build-ast-grep-cli.yml for riscv64 wheels - #989

Merged
luhenry merged 1 commit into
mainfrom
ast-grep-cli
Sep 6, 2026
Merged

ast-grep-cli: add build-ast-grep-cli.yml for riscv64 wheels#989
luhenry merged 1 commit into
mainfrom
ast-grep-cli

Conversation

@luhenry

@luhenry luhenry commented Sep 6, 2026

Copy link
Copy Markdown
Member

Compiles ast-grep, a structural search/lint/rewrite CLI (ast-grep/sg), into a maturin bindings = "bin" wheel with no ABI tag (a single compiled executable, not an extension module). Upstream publishes no riscv64 wheel.

Mirrors the linux job of upstream's pypi.yml.

Differs from upstream

  • Uses PyO3/maturin-action directly with target: riscv64gc-unknown-linux-gnu, manylinux: '2_39' - the riscv64 pairing upstream has no job for.

Testing

  • No wheel-level test suite ships (crates/cli's tests/*.rs run under upstream's cargo test, never packaged); runs --version/--help on both ast-grep and sg, then a real search-and-rewrite pass mirroring upstream's own README example.

License: OK

Built and installed locally on arm64 from the maturin-built wheel; search, rewrite and no-match exit-code checks pass. riscv64 verified in CI.

Mirrors upstream's pypi.yml linux job: a maturin bindings="bin" build
(manifest-path crates/cli/Cargo.toml) targeting riscv64gc-unknown-linux-gnu
on manylinux_2_39, producing one interpreter-agnostic wheel that bundles
both the ast-grep and sg binaries.
@luhenry
luhenry merged commit cc29292 into main Sep 6, 2026
10 checks passed
@luhenry
luhenry deleted the ast-grep-cli branch September 6, 2026 08:39
@luhenry luhenry linked an issue Sep 6, 2026 that may be closed by this pull request
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.

ast-grep-cli riscv64 support

1 participant