File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 62
62
cd bindings/python
63
63
pipx run build --sdist
64
64
65
+ - name : Test build with sdist
66
+ run : |
67
+ TMP_DIR=$(mktemp -d)
68
+ tar -xf bindings/python/dist/*.tar.gz -C $TMP_DIR/
69
+ cd $TMP_DIR/*/src
70
+ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF -B build
71
+ cmake --build build
72
+
65
73
- uses : actions/upload-artifact@v4
66
74
with :
67
75
path : bindings/python/dist/*.tar.gz
Original file line number Diff line number Diff line change @@ -850,4 +850,4 @@ if(CAPSTONE_BUILD_CSTEST)
850
850
endif ()
851
851
852
852
set (CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR} /CPackConfig.cmake" )
853
- include (CPackConfig.txt)
853
+ include (CPackConfig.txt)
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ def copy_sources():
99
99
src .extend (glob .glob (os .path .join (BUILD_DIR , "make.sh" )))
100
100
src .extend (glob .glob (os .path .join (BUILD_DIR , "CMakeLists.txt" )))
101
101
src .extend (glob .glob (os .path .join (BUILD_DIR , "pkgconfig.mk" )))
102
+ src .extend (glob .glob (os .path .join (BUILD_DIR , "CPackConfig.txt" )))
103
+ src .extend (glob .glob (os .path .join (BUILD_DIR , "CPackConfig.cmake" )))
102
104
103
105
for filename in src :
104
106
outpath = os .path .join (SRC_DIR , os .path .basename (filename ))
You can’t perform that action at this time.
0 commit comments