Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/actions/build-asset-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<CONFIG:Release>:${c_opts} ${release_c_opts}>)
Expand Down Expand Up @@ -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
endif() # CUDAToolkit_FOUND