diff --git a/.github/actions/build-asset-unix.sh b/.github/actions/build-asset-unix.sh index 9c32a0af..3408b65d 100755 --- a/.github/actions/build-asset-unix.sh +++ b/.github/actions/build-asset-unix.sh @@ -43,9 +43,9 @@ if [[ compile_cuda ]]; then fi mkdir build && cd build -cmake .. +cmake .. -DCMAKE_BUILD_TYPE=Debug bash -eo pipefail ../embed-version.sh -cmake --build . --target bladebit --config Release --target $target -j $thread_count +cmake --build . --target bladebit --config Debug --target $target -j $thread_count chmod +x ./bladebit if [[ $OSTYPE == 'msys'* ]] || [[ $OSTYPE == 'cygwin'* ]]; then @@ -57,14 +57,13 @@ fi # Ensure bladebit version matches expected version bb_version="$(./${exe_name} --version | xargs)" -if [[ "$bb_version" != "$version" ]]; then - >&2 echo "Incorrect bladebit version. Got '$bb_version' but expected '$version'." - exit 1 -fi +#if [[ "$bb_version" != "$version" ]]; then +# >&2 echo "Incorrect bladebit version. Got '$bb_version' but expected '$version'." +# exit 1 +#fi tar --version tar -czvf $artifact_name $exe_name mkdir ../bin mv $artifact_name ../bin/ ls -la ../bin - diff --git a/CMakeLists.txt b/CMakeLists.txt index 9dc4a294..34ded711 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -515,7 +515,7 @@ target_compile_options(lib_bladebit_cuda PRIVATE >) # target_compile_options(lib_bladebit_cuda PRIVATE "$<${is_cuda_debug}:-Xcompiler=${cuda_debug_c_opts}">) -# target_compile_options(lib_bladebit_cuda PRIVATE "$<${is_cuda_debug}:-G">) +target_compile_options(lib_bladebit_cuda PRIVATE "$<${is_cuda_debug}:-G">) # target_compile_options(lib_bladebit_cuda PRIVATE $<${is_cuda}:-Xcompiler=/FIpch.h>) # target_compile_options(lib_bladebit_cuda PRIVATE $<$:${c_opts} ${release_c_opts}>) @@ -543,4 +543,4 @@ set_target_properties(lib_bladebit_cuda bladebit_cuda PROPERTIES source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src FILES ${src_full} ${bb_headers} ) -endif() # CUDAToolkit_FOUND \ No newline at end of file +endif() # CUDAToolkit_FOUND