GitHub CI with Prebuilt Binary Wheel #188
Merged
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.
Feature
Closing #187
v*
Result Preview
You may preview the CI execution Result here.
https://github.com/khwong-c/hdlConvertor/actions/runs/7487908840
The Artifact
PythonPackage
contains all prebuilt binary wheel.Open one of them and you can find the ANTLR4 Binary in the
hdlConvertor.libs
directory.They will be installed and loaded by
pip install hdlConvertor
if it is available.Detail explained
We are not changing the build script, instead bundling the shared object (*.so) required by
hdlConvertor
This can be done easily with
auditwheel
package.External binary dependencies are injected into the wheel after
repair
.Different platforms need different tools for repairing the wheel.
I have done the Linux one and you might follow the same pattern and complete the others
auditwheel
delocate
delvewheel
What if ...
setup.py
as your entry point for the build.build_and_test
job.matrix
.python-version
accordingly.Reference: https://github.com/actions/setup-python?tab=readme-ov-file#basic-usage
mensonbuild
)git merge master
once the PR is merged tomaster
.