Skip to content
Open
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
14 changes: 14 additions & 0 deletions .github/workflows/build_linux_arm64_wheels-gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ jobs:
name: Build Universal Wheel (Linux ARM64)
runs-on: GH-Linux-ARM64
steps:
- name: Check CPU capabilities and requirements
run: |
echo "=== CPU Information ==="
cat /proc/cpuinfo
echo ""
echo "=== Checking CPU requirements ==="

if grep -P "^(?=.*atomic)(?=.*ssbs)" /proc/cpuinfo > /dev/null; then
echo "CPU meets minimum requirements (atomic and ssbs flags found)"
else
echo "CPU does not meet minimum requirements"
echo "Missing required flags: atomic and/or ssbs"
echo "This may cause build failures. Consider using -DNO_ARMV81_OR_HIGHER=1"
fi
- name: Install Python build dependencies
run: |
sudo apt-get update
Expand Down
24 changes: 12 additions & 12 deletions chdb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ elif [ "$(uname)" == "Linux" ]; then
if [ "$(uname -m)" == "x86_64" ]; then
CPU_FEATURES="-DENABLE_AVX=1 -DENABLE_AVX2=0"
LLVM="-DENABLE_EMBEDDED_COMPILER=1 -DENABLE_DWARF_PARSER=1"
RUST_FEATURES="-DENABLE_RUST=1 -DENABLE_DELTA_KERNEL_RS=1"
CORROSION_CMAKE_FILE="${PROJ_DIR}/contrib/corrosion-cmake/CMakeLists.txt"
if [ -f "${CORROSION_CMAKE_FILE}" ]; then
if ! grep -q 'OPENSSL_NO_DEPRECATED_3_0' "${CORROSION_CMAKE_FILE}"; then
echo "Modifying corrosion CMakeLists.txt for Linux x86_64..."
${SED_INPLACE} 's/corrosion_set_env_vars(${target_name} "RUSTFLAGS=${RUSTFLAGS}")/corrosion_set_env_vars(${target_name} "RUSTFLAGS=${RUSTFLAGS} --cfg osslconf=\\\"OPENSSL_NO_DEPRECATED_3_0\\\"")/g' "${CORROSION_CMAKE_FILE}"
else
echo "corrosion CMakeLists.txt already modified, skipping..."
fi
else
CPU_FEATURES="-DENABLE_AVX=0 -DENABLE_AVX2=0"
LLVM="-DENABLE_EMBEDDED_COMPILER=0 -DENABLE_DWARF_PARSER=0"
fi
RUST_FEATURES="-DENABLE_RUST=1 -DENABLE_DELTA_KERNEL_RS=1"
CORROSION_CMAKE_FILE="${PROJ_DIR}/contrib/corrosion-cmake/CMakeLists.txt"
if [ -f "${CORROSION_CMAKE_FILE}" ]; then
if ! grep -q 'OPENSSL_NO_DEPRECATED_3_0' "${CORROSION_CMAKE_FILE}"; then
echo "Modifying corrosion CMakeLists.txt for Linux x86_64..."
${SED_INPLACE} 's/corrosion_set_env_vars(${target_name} "RUSTFLAGS=${RUSTFLAGS}")/corrosion_set_env_vars(${target_name} "RUSTFLAGS=${RUSTFLAGS} --cfg osslconf=\\\"OPENSSL_NO_DEPRECATED_3_0\\\"")/g' "${CORROSION_CMAKE_FILE}"
else
echo "Warning: corrosion CMakeLists.txt not found at ${CORROSION_CMAKE_FILE}"
echo "corrosion CMakeLists.txt already modified, skipping..."
fi
else
CPU_FEATURES="-DENABLE_AVX=0 -DENABLE_AVX2=0 -DNO_ARMV81_OR_HIGHER=1"
LLVM="-DENABLE_EMBEDDED_COMPILER=0 -DENABLE_DWARF_PARSER=0"
echo "Warning: corrosion CMakeLists.txt not found at ${CORROSION_CMAKE_FILE}"
fi
else
echo "OS not supported"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_delta_lake.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import chdb
from chdb import session

@unittest.skipUnless(sys.platform.startswith("linux") and platform.machine() in ["x86_64", "AMD64"], "Runs only in the Linux x86 environment")
@unittest.skipUnless(sys.platform.startswith("linux"), "Runs only on Linux platforms")
class TestDeltaLake(unittest.TestCase):
def setUp(self) -> None:
return super().setUp()
Expand Down
Loading