-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V5 - Fix sdist build and add CI job for testing it. (#2623)
* Fix sdist build and add CI job for testing it. * Temporarily set QEMU version to v8.1.5.
- Loading branch information
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,11 @@ jobs: | |
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
# Temporary fix due to | ||
# https://github.com/pypa/cibuildwheel/issues/2257 | ||
# https://github.com/docker/setup-qemu-action/issues/188 | ||
# https://github.com/tonistiigi/binfmt/issues/215 | ||
image: tonistiigi/binfmt:qemu-v8.1.5 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
@@ -62,6 +67,14 @@ jobs: | |
cd bindings/python | ||
pipx run build --sdist | ||
- name: Test build with sdist | ||
run: | | ||
TMP_DIR=$(mktemp -d) | ||
tar -xf bindings/python/dist/*.tar.gz -C $TMP_DIR/ | ||
cd $TMP_DIR/*/src | ||
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF -B build | ||
cmake --build build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: bindings/python/dist/*.tar.gz | ||
|
This file contains 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
This file contains 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