tree-sitter-swift: add build-tree-sitter-swift.yml for riscv64 wheels - #976
Open
luhenry wants to merge 2 commits into
Open
tree-sitter-swift: add build-tree-sitter-swift.yml for riscv64 wheels#976luhenry wants to merge 2 commits into
luhenry wants to merge 2 commits into
Conversation
alex-pinkus/tree-sitter-swift's release tags don't commit a generated src/parser.c (only the separate "<ver>-with-generated-files" tags do, and those carry a stale pyproject version), so a generate_parser job runs `tree-sitter generate` on x86 - matching upstream's own publish-pypi.yml - before handing the completed checkout to the riscv64 cibuildwheel job.
…ndoff cibuildwheel resolves CIBW_TEST_SOURCES relative to the invocation cwd (the "project root"), not the package-dir argument. Extracting the generated checkout into a tree-sitter-swift/ subdirectory and passing that as package-dir broke this: bindings/python/tests was being looked up at the workspace root instead of inside the subdirectory. Extract the tarball directly into cwd (matching the other tree-sitter-* ports, where checkout and package-dir already coincide) instead of nesting it.
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.
tree-sitter-swift0.7.3Compiles the Swift tree-sitter grammar's parser and external scanner into the
_bindingextension. Upstream publishes no riscv64 wheel.Mirrors upstream's
package-pypi.yml, same shape as the already-mergedbuild-tree-sitter-ruby.yml/build-tree-sitter-php.yml/build-tree-sitter-typescript.yml.Differs from upstream
src/parser.c; agenerate_parserjob runstree-sitter generateon x86 first (no riscv64 CLI binary).Testing
License: OK
Built on cp312 locally (macOS venv) from the published sdist; 1 passed.