File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 6262 cd bindings/python
6363 pipx run build --sdist
6464
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/capstone-*/src
70+ cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCAPSTONE_BUILD_TESTS=OFF -DCAPSTONE_BUILD_CSTOOL=OFF build
71+ cmake --build build
72+
6573 - uses : actions/upload-artifact@v4
6674 with :
6775 path : bindings/python/dist/*.tar.gz
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ option(CAPSTONE_BUILD_DIET "Build diet library" OFF)
5656option (CAPSTONE_BUILD_TESTS "Build tests" ${PROJECT_IS_TOP_LEVEL} )
5757option (CAPSTONE_BUILD_CSTOOL "Build cstool" ${PROJECT_IS_TOP_LEVEL} )
5858option (CAPSTONE_BUILD_CSTEST "Build cstest" OFF )
59+ option (CAPSTONE_BUILD_FUZZER "Build the fuzzer" OFF )
5960option (CAPSTONE_USE_DEFAULT_ALLOC "Use default memory allocation functions" ON )
6061option (CAPSTONE_ARCHITECTURE_DEFAULT "Whether architectures are enabled by default" ON )
6162option (CAPSTONE_DEBUG "Whether to enable extra debug assertions" OFF )
@@ -850,4 +851,4 @@ if(CAPSTONE_BUILD_CSTEST)
850851endif ()
851852
852853set (CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR} /CPackConfig.cmake" )
853- include (CPackConfig.txt)
854+ include (CPackConfig.txt)
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ def copy_sources():
9999 src .extend (glob .glob (os .path .join (BUILD_DIR , "make.sh" )))
100100 src .extend (glob .glob (os .path .join (BUILD_DIR , "CMakeLists.txt" )))
101101 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" )))
102104
103105 for filename in src :
104106 outpath = os .path .join (SRC_DIR , os .path .basename (filename ))
You can’t perform that action at this time.
0 commit comments